From ba628063b5b6e670b38e8b61a2f8706d57231601 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 14 Jun 2024 10:02:20 +0700 Subject: [PATCH] fix --- src/controllers/UserController.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/UserController.ts b/src/controllers/UserController.ts index f496c054..306d0e61 100644 --- a/src/controllers/UserController.ts +++ b/src/controllers/UserController.ts @@ -191,9 +191,10 @@ export class KeycloakController extends Controller { id: userId, }, }); - + if (profile) { - profile.keycloak = ""; + const null_:any = null; + profile.keycloak = null_; await this.profileRepo.save(profile); } }