aboutsummaryrefslogtreecommitdiff
path: root/services/votes/votes.hooks.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-25 18:52:01 +0300
committereug-vs <eug-vs@keemail.me>2020-06-25 18:52:01 +0300
commitfe529f4a7739ac6dd9a30652279818519565ec6a (patch)
tree15bb089fb7f8342c1ee63e3a7efa8834b578db3e /services/votes/votes.hooks.ts
parent0afe8f1530affad1e58a65385b2a4bf888ab86cb (diff)
downloadwhich-api-fe529f4a7739ac6dd9a30652279818519565ec6a.tar.gz
style!: fix all linting errors
Diffstat (limited to 'services/votes/votes.hooks.ts')
-rw-r--r--services/votes/votes.hooks.ts2
1 files changed, 1 insertions, 1 deletions
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;
};