Skip to content

Commit

Permalink
Revert "Update backend/src/common/services/token/token.services.ts"
Browse files Browse the repository at this point in the history
This reverts commit 90ac229.
  • Loading branch information
stefano-lacorazza committed Aug 23, 2024
1 parent b205477 commit 6c74d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/common/services/token/token.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TokenService {

public async getUserIdFromToken(token: string): Promise<number | null> {
const payload = await this.verifyToken(token);
return (payload?.['userId'] as number) ?? null;
return (payload?.['userId'] as number) || null;
}
}

Expand Down

0 comments on commit 6c74d92

Please sign in to comment.