From 6c74d924d80fa18b36a6ff50b6f61f1bf6b12c6c Mon Sep 17 00:00:00 2001 From: stefano-lacorazza <112132737+stefano-lacorazza@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:19:15 -0500 Subject: [PATCH] Revert "Update backend/src/common/services/token/token.services.ts" This reverts commit 90ac229415ea2a06e46b08c40b9e830bf4e7b65d. --- backend/src/common/services/token/token.services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }