Skip to content

Commit 1c2f3c9

Browse files
committed
style: fix eslint errors
1 parent 85b3cc2 commit 1c2f3c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

populateDb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const createPoll = (authorId: string): Promise<Poll> => {
5656
contents: {
5757
left: generateImageData(),
5858
right: generateImageData()
59-
},
59+
}
6060
}, { user: { _id: authorId }, authenticated: true });
6161
};
6262

services/users/users.hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const ignoreCaseRegex = async (context: HookContext): Promise<HookContext> => {
1515
};
1616

1717
const compareUser = async (context: HookContext): Promise<HookContext> => {
18-
if(context.arguments[0] != context.params.user._id) {
18+
if (context.arguments[0] !== context.params.user._id) {
1919
throw new NotAuthenticated('You can only PATCH/UPDATE your own user!');
2020
}
2121
return context;
22-
}
22+
};
2323

2424
export default {
2525
after: {

0 commit comments

Comments
 (0)