Skip to content

Commit f06b772

Browse files
committed
remove extra arguments from logout and resetPassword middlewares
1 parent 5278d13 commit f06b772

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/typescript/graphql/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ const graphQLMiddlewares = {
9191
updateUser: authorizedByAdmin(),
9292
deleteUserById: authorizedByAdmin(),
9393
deleteUserByEmail: authorizedByAdmin(),
94-
logout: isAuthorizedByUserId("userId"),
95-
resetPassword: isAuthorizedByEmail("email"),
94+
logout: isAuthorizedByUserId(),
95+
resetPassword: isAuthorizedByEmail(),
9696
sendSignInLink: authorizedByAllRoles(),
9797
},
9898
};

0 commit comments

Comments
 (0)