aboutsummaryrefslogtreecommitdiff
path: root/services/users
diff options
context:
space:
mode:
Diffstat (limited to 'services/users')
-rw-r--r--services/users/users.hooks.ts4
1 files changed, 2 insertions, 2 deletions
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<HookContext> => {
};
const compareUser = async (context: HookContext): Promise<HookContext> => {
- 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: {