diff --git a/src/modules/user/middleware/app.ts b/src/modules/user/middleware/app.ts index 8713242..c559621 100644 --- a/src/modules/user/middleware/app.ts +++ b/src/modules/user/middleware/app.ts @@ -23,7 +23,7 @@ export class UserMiddleware implements IMiddleware { resolve() { return async (ctx: Context, next: NextFunction) => { - this.ignoreUrls = this.ignoreUrls.concat( + const ignoreUrls = this.ignoreUrls.concat( this.coolUrlTagData.byKey(TagTypes.IGNORE_TOKEN) ); let { url } = ctx; @@ -41,7 +41,7 @@ export class UserMiddleware implements IMiddleware { return; } } catch (error) {} - if (this.ignoreUrls.includes(url)) { + if (ignoreUrls.includes(url)) { await next(); return; } else {