From 1c2f3c9e5b39826266d64f4227e53fff139ea948 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 5 Jul 2020 13:35:54 +0300 Subject: style: fix eslint errors --- services/users/users.hooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/users/users.hooks.ts') diff --git a/services/users/users.hooks.ts b/services/users/users.hooks.ts index 1b4be2b..125f418 100644 --- a/services/users/users.hooks.ts +++ b/services/users/users.hooks.ts @@ -15,11 +15,11 @@ const ignoreCaseRegex = async (context: HookContext): Promise => { }; const compareUser = async (context: HookContext): Promise => { - if(context.arguments[0] != context.params.user._id) { + if (context.arguments[0] !== context.params.user._id) { throw new NotAuthenticated('You can only PATCH/UPDATE your own user!'); } return context; -} +}; export default { after: { -- cgit v1.2.3