From fc4bdecdcd8abc7a2adaeb4b7f209f6930846ffa Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Jun 2020 17:09:19 +0300 Subject: feat: use hashPassword hook --- services/users/users.service.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'services/users/users.service.ts') diff --git a/services/users/users.service.ts b/services/users/users.service.ts index 988d162..08c347d 100644 --- a/services/users/users.service.ts +++ b/services/users/users.service.ts @@ -1,10 +1,12 @@ import { Application } from '@feathersjs/express'; import service from 'feathers-mongoose'; import Model from '../../models/users/user.model'; +import hooks from './users.hooks'; const UserService = service({ Model }); export default (app: Application): void => { app.use('/users', UserService); + app.service('users').hooks(hooks); }; -- cgit v1.2.3