mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix linting for server (except for length of apidoc)
This commit is contained in:
@@ -12,7 +12,12 @@ export function generateUsername () {
|
||||
}
|
||||
|
||||
export function loginRes (user, req, res) {
|
||||
if (user.auth.blocked) throw new NotAuthorized(res.t('accountSuspended', { communityManagerEmail: COMMUNITY_MANAGER_EMAIL, userId: user._id }));
|
||||
if (user.auth.blocked) {
|
||||
throw new NotAuthorized(res.t(
|
||||
'accountSuspended',
|
||||
{ communityManagerEmail: COMMUNITY_MANAGER_EMAIL, userId: user._id },
|
||||
));
|
||||
}
|
||||
|
||||
const responseData = {
|
||||
id: user._id,
|
||||
|
||||
Reference in New Issue
Block a user