mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-29 01:09:20 +00:00
turn off eslint rules causing issues
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) });
|
||||
|
||||
Reference in New Issue
Block a user