summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authordank074 <torresefrain10@gmail.com>2024-11-13 19:05:54 -0600
committerdank074 <torresefrain10@gmail.com>2024-11-13 19:05:54 -0600
commitf499507698e0f940551e5f4ee0a82d82f609dcae (patch)
treebd1c10f1e06931b0461c8d9373cee86d5c9366d7 /src/api
parentchange eslint config to use new flat config format (diff)
downloadserver-ts-f499507698e0f940551e5f4ee0a82d82f609dcae.tar.xz
turn off eslint rules causing issues
Diffstat (limited to 'src/api')
-rw-r--r--src/api/middlewares/Authentication.ts1
-rw-r--r--src/api/routes/auth/reset.ts1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index b5204ffcf..b4f484776 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -108,7 +108,6 @@ export async function Authentication( req.rights = new Rights(Number(user.rights)); return next(); } catch (error) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion return next(new HTTPError(error!.toString(), 400)); } } diff --git a/src/api/routes/auth/reset.ts b/src/api/routes/auth/reset.ts
index b3ca1e9e2..da4d3334b 100644 --- a/src/api/routes/auth/reset.ts +++ b/src/api/routes/auth/reset.ts
@@ -72,7 +72,6 @@ router.post( await User.update({ id: user.id }, data); // come on, the user has to have an email to reset their password in the first place - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion await Email.sendPasswordChanged(user, user.email!); res.json({ token: await generateToken(user.id) });