aboutsummaryrefslogtreecommitdiff
path: root/services/users/users.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/users/users.service.ts')
-rw-r--r--services/users/users.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/users/users.service.ts b/services/users/users.service.ts
index 08c347d..77eb9fd 100644
--- a/services/users/users.service.ts
+++ b/services/users/users.service.ts
@@ -3,7 +3,7 @@ import service from 'feathers-mongoose';
import Model from '../../models/users/user.model';
import hooks from './users.hooks';
-const UserService = service({ Model });
+const UserService = service({ Model, whitelist: ['$options', '$regex'] });
export default (app: Application): void => {
app.use('/users', UserService);