File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const createPoll = (authorId: string): Promise<Poll> => {
56
56
contents : {
57
57
left : generateImageData ( ) ,
58
58
right : generateImageData ( )
59
- } ,
59
+ }
60
60
} , { user : { _id : authorId } , authenticated : true } ) ;
61
61
} ;
62
62
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ const ignoreCaseRegex = async (context: HookContext): Promise<HookContext> => {
15
15
} ;
16
16
17
17
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 ) {
19
19
throw new NotAuthenticated ( 'You can only PATCH/UPDATE your own user!' ) ;
20
20
}
21
21
return context ;
22
- }
22
+ } ;
23
23
24
24
export default {
25
25
after : {
You can’t perform that action at this time.
0 commit comments