summaryrefslogtreecommitdiff
path: root/src/services/contractors.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/contractors.service.ts')
-rw-r--r--src/services/contractors.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/contractors.service.ts b/src/services/contractors.service.ts
index a5b3f59..1bfc03d 100644
--- a/src/services/contractors.service.ts
+++ b/src/services/contractors.service.ts
@@ -2,9 +2,9 @@ import { Application } from '@feathersjs/express';
import service from 'feathers-mongoose';
import Model from '../models/contractor/contractor.model';
-const contractors = service({ Model });
+const Contractors = service({ Model, whitelist: ['$options', '$regex'] });
export default (app: Application): void => {
- app.use('/contractors', contractors);
+ app.use('/contractors', Contractors);
};