chore: linting

This commit is contained in:
zhom
2026-03-28 14:05:45 +04:00
parent 6d71dbc62c
commit 248927ae6f
6 changed files with 44 additions and 109 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export class AuthGuard implements CanActivate {
const request = context.switchToHttp().getRequest<Request>();
const authHeader = request.headers.authorization;
if (!authHeader || !authHeader.startsWith("Bearer ")) {
if (!authHeader?.startsWith("Bearer ")) {
throw new UnauthorizedException(
"Missing or invalid authorization header",
);