diff options
Diffstat (limited to 'services/votes')
-rw-r--r-- | services/votes/votes.hooks.ts | 2 |
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; }; |