turn off eslint rules causing issues

This commit is contained in:
dank074
2024-11-13 19:05:54 -06:00
parent f043dd455d
commit f499507698
12 changed files with 6 additions and 9 deletions
-1
View File
@@ -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));
}
}
-1
View File
@@ -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) });