From aa6ec4397ff7fd2b3d38589a8f571177ddaca8ef Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 26 Feb 2025 11:06:40 +0100
Subject: [PATCH] revert: revert
---
frontend/src/app/service/user.service.ts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/frontend/src/app/service/user.service.ts b/frontend/src/app/service/user.service.ts
index caa9bf9..ba6bead 100644
--- a/frontend/src/app/service/user.service.ts
+++ b/frontend/src/app/service/user.service.ts
@@ -21,11 +21,10 @@ export class UserService {
});
}
- public async getOrCreateUser(userProfile: KeycloakProfile): Promise {
+ public async getOrCreateUser(userProfile: KeycloakProfile) {
if (userProfile.id == null) {
- return null;
+ return;
}
-
return await this.getUser(userProfile.id)
.toPromise()
.then(async (user) => {