diff --git a/backend/src/common/services/token/token.services.ts b/backend/src/common/services/token/token.services.ts index c117b5c0f..1a5de4163 100644 --- a/backend/src/common/services/token/token.services.ts +++ b/backend/src/common/services/token/token.services.ts @@ -28,7 +28,7 @@ class TokenService { public async getUserIdFromToken(token: string): Promise { const payload = await this.verifyToken(token); - return (payload?.['userId'] as number) ?? null; + return (payload?.['userId'] as number) || null; } }