diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-21 14:29:59 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-21 14:30:55 +0300 |
commit | e99b51895afd532a529744396ecae87d47c68503 (patch) | |
tree | b5c1ebc0f364d8e11ddad0f27b57340d45b44bb1 /services | |
parent | f4c4f2d4789880c0cfc956d08aab10b5a93ebcb1 (diff) | |
download | which-api-e99b51895afd532a529744396ecae87d47c68503.tar.gz |
feat: change hooks and install which-types
Diffstat (limited to 'services')
-rw-r--r-- | services/auth/auth.service.ts | 2 | ||||
-rw-r--r-- | services/polls/polls.hooks.ts | 10 | ||||
-rw-r--r-- | services/profiles/profiles.hooks.ts | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/services/auth/auth.service.ts b/services/auth/auth.service.ts index 42846b0..826357c 100644 --- a/services/auth/auth.service.ts +++ b/services/auth/auth.service.ts @@ -1,6 +1,6 @@ import { AuthenticationService, - JWTStrategy + JWTStrategy } from '@feathersjs/authentication'; import { LocalStrategy } from '@feathersjs/authentication-local'; import { Application } from '@feathersjs/express'; diff --git a/services/polls/polls.hooks.ts b/services/polls/polls.hooks.ts index 0637320..a914cd0 100644 --- a/services/polls/polls.hooks.ts +++ b/services/polls/polls.hooks.ts @@ -1,12 +1,12 @@ import { - expandAuthorHook, - expandAuthorManyHook -} from '../../hooks/expandAuthor'; + convertPollHook, + convertPollManyHook +} from '../../hooks/convertPoll'; export default { after: { - get: [expandAuthorHook], - find: [expandAuthorManyHook] + get: [convertPollHook], + find: [convertPollManyHook] } }; diff --git a/services/profiles/profiles.hooks.ts b/services/profiles/profiles.hooks.ts index bb05d94..4447bee 100644 --- a/services/profiles/profiles.hooks.ts +++ b/services/profiles/profiles.hooks.ts @@ -1,10 +1,10 @@ import { - expandAuthorManyHook -} from '../../hooks/expandAuthor'; + convertPollManyHook +} from '../../hooks/convertPoll'; export default { after: { - get: [expandAuthorManyHook] + get: [convertPollManyHook] } }; |