diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-25 18:52:01 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-25 18:52:01 +0300 |
commit | fe529f4a7739ac6dd9a30652279818519565ec6a (patch) | |
tree | 15bb089fb7f8342c1ee63e3a7efa8834b578db3e /services | |
parent | 0afe8f1530affad1e58a65385b2a4bf888ab86cb (diff) | |
download | which-api-fe529f4a7739ac6dd9a30652279818519565ec6a.tar.gz |
style!: fix all linting errors
Diffstat (limited to 'services')
-rw-r--r-- | services/index.ts | 2 | ||||
-rw-r--r-- | services/polls/polls.hooks.ts | 2 | ||||
-rw-r--r-- | services/users/users.hooks.ts | 2 | ||||
-rw-r--r-- | services/votes/votes.hooks.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/services/index.ts b/services/index.ts index fe5ffdc..ce20901 100644 --- a/services/index.ts +++ b/services/index.ts @@ -18,6 +18,6 @@ export default (app: Application): void => { before: { all: tryAuthenticate } - }) + }); }; diff --git a/services/polls/polls.hooks.ts b/services/polls/polls.hooks.ts index eba3e63..13d6f63 100644 --- a/services/polls/polls.hooks.ts +++ b/services/polls/polls.hooks.ts @@ -2,7 +2,7 @@ import convertPoll from '../../hooks/convertPoll'; export default { after: { - all: [convertPoll], + all: [convertPoll] } }; diff --git a/services/users/users.hooks.ts b/services/users/users.hooks.ts index 8eecca3..ee1ae1c 100644 --- a/services/users/users.hooks.ts +++ b/services/users/users.hooks.ts @@ -6,7 +6,7 @@ const hashPassword = hooks.hashPassword('password'); const localDispatch = async (context: HookContext): Promise<HookContext> => { context.result = context.dispatch; return context; -} +}; export default { after: { diff --git a/services/votes/votes.hooks.ts b/services/votes/votes.hooks.ts index 1cf7261..7d0b3ba 100644 --- a/services/votes/votes.hooks.ts +++ b/services/votes/votes.hooks.ts @@ -2,7 +2,7 @@ import { HookContext } from '@feathersjs/feathers'; import requireAuth from '../../hooks/requireAuth'; const addUserId = async (context: HookContext): Promise<HookContext> => { - const { params: { user} } = context; + const { params: { user } } = context; context.data.userId = user._id; return context; }; |