aboutsummaryrefslogtreecommitdiff
path: root/services/votes
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-22 21:29:17 +0300
committereug-vs <eug-vs@keemail.me>2020-06-22 21:29:17 +0300
commit676c722a994a214c182bcf26b80eab09ebf9f61e (patch)
tree9275da333eac6ca4cf06126be55747744106de99 /services/votes
parent4101b4ff7a5c328164fe74ebfa3c42b82f332c43 (diff)
downloadwhich-api-676c722a994a214c182bcf26b80eab09ebf9f61e.tar.gz
refactor: unite convertPoll hooks
Diffstat (limited to 'services/votes')
-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]
}
};