Чистка.

Удалены неиспользуемые функции.
Были исправлены несоблюдения стиля кода.
This commit is contained in:
2024-09-06 23:32:16 +04:00
parent 31906fbbd1
commit 6b07bd89b8
16 changed files with 50 additions and 177 deletions

View File

@@ -29,7 +29,7 @@ export class AuthGuard implements CanActivate {
try {
if (
!(await this.jwtService.verifyAsync(token)) ||
!(await this.usersService.has({ access_token: token }))
!(await this.usersService.contains({ accessToken: token }))
) {
// noinspection ExceptionCaughtLocallyJS
throw new Error();