aboutsummaryrefslogtreecommitdiff
path: root/services/votes/votes.hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/votes/votes.hooks.ts')
-rw-r--r--services/votes/votes.hooks.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/services/votes/votes.hooks.ts b/services/votes/votes.hooks.ts
index 2e29008..a41b8a9 100644
--- a/services/votes/votes.hooks.ts
+++ b/services/votes/votes.hooks.ts
@@ -1,15 +1,12 @@
-import {
- convertPollHook
-} from '../../hooks/convertPoll';
-
import { authenticate } from '@feathersjs/authentication';
+import convertPoll from '../../hooks/convertPoll';
export default {
before: {
create: [authenticate('jwt')]
},
after: {
- all: [convertPollHook]
+ all: [convertPoll]
}
};