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