Skip to content

Commit f0eba18

Browse files
committed
linting
1 parent c901489 commit f0eba18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

backend/typescript/rest/authRoutes.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ authRouter.post(
7676
res.status(500).json({ error: getErrorMessage(error) });
7777
}
7878
}
79-
}
79+
},
8080
);
8181

8282
/* Returns access token in response body and sets refreshToken as an httpOnly cookie */
@@ -104,7 +104,7 @@ authRouter.post(
104104
} catch (error) {
105105
res.status(500).json({ error: getErrorMessage(error) });
106106
}
107-
}
107+
},
108108
);
109109

110110
/* Emails a password reset link to the user with the specified email */
@@ -118,7 +118,7 @@ authRouter.post(
118118
} catch (error) {
119119
res.status(500).json({ error: getErrorMessage(error) });
120120
}
121-
}
121+
},
122122
);
123123

124124
// updates user password and updates status
@@ -129,7 +129,7 @@ authRouter.post(
129129
try {
130130
const responseSuccess = await authService.setPassword(
131131
req.params.email,
132-
req.body.newPassword
132+
req.body.newPassword,
133133
);
134134
if (responseSuccess.success) {
135135
const user = await userService.getUserByEmail(req.params.email);
@@ -146,15 +146,15 @@ authRouter.post(
146146
} catch (error) {
147147
res.status(500).json({ error: getErrorMessage(error) });
148148
}
149-
}
149+
},
150150
);
151151

152152
/* Invite a user */
153153
authRouter.post("/invite-user", inviteUserDtoValidator, async (req, res) => {
154154
try {
155155
if (
156156
!isAuthorizedByRole(
157-
new Set([Role.ADMINISTRATOR, Role.ANIMAL_BEHAVIOURIST])
157+
new Set([Role.ADMINISTRATOR, Role.ANIMAL_BEHAVIOURIST]),
158158
)
159159
) {
160160
res

0 commit comments

Comments
 (0)