👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2022-03-14 16:01:51 +01:00
parent 6548b6c9dc
commit 10f18077b1
2 changed files with 6 additions and 5 deletions

View file

@ -419,10 +419,7 @@ class App {
this.app.use( this.app.use(
async (req: express.Request, res: express.Response, next: express.NextFunction) => { async (req: express.Request, res: express.Response, next: express.NextFunction) => {
// Skip basic auth for a few listed endpoints or when instance owner has been setup // Skip basic auth for a few listed endpoints or when instance owner has been setup
if ( if (authIgnoreRegex.exec(req.url) || config.get('userManagement.isInstanceOwnerSetUp')) {
authIgnoreRegex.exec(req.url) ||
config.get('userManagement.isInstanceOwnerSetUp')
) {
return next(); return next();
} }
const realm = 'n8n - Editor UI'; const realm = 'n8n - Editor UI';

View file

@ -266,7 +266,11 @@ export function usersNamespace(this: N8nApp): void {
inviterId, inviterId,
inviteeId, inviteeId,
}); });
throw new ResponseHelper.ResponseError('The invitation was likely either deleted or already claimed', undefined, 400); throw new ResponseHelper.ResponseError(
'The invitation was likely either deleted or already claimed',
undefined,
400,
);
} }
const inviter = users.find((user) => user.id === inviterId); const inviter = users.find((user) => user.id === inviterId);