From 32282b016b0b818116b03113a75e55dd85b6ee5f Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Sat, 23 May 2026 09:17:49 +0700 Subject: [PATCH] remove log updateUserAttributes success --- src/keycloak/index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/keycloak/index.ts b/src/keycloak/index.ts index b59d5e81..f359a340 100644 --- a/src/keycloak/index.ts +++ b/src/keycloak/index.ts @@ -1019,7 +1019,9 @@ export async function resetPassword(username: string) { if (!users.ok) { const errorText = await users.text(); - console.error(`[resetPassword] Failed to search user. Status: ${users.status}, Error: ${errorText}`); + console.error( + `[resetPassword] Failed to search user. Status: ${users.status}, Error: ${errorText}`, + ); return false; } @@ -1047,7 +1049,9 @@ export async function resetPassword(username: string) { if (!resetResponse.ok) { const errorText = await resetResponse.text(); - console.error(`[resetPassword] Failed to send reset email. Status: ${resetResponse.status}, Error: ${errorText}`); + console.error( + `[resetPassword] Failed to send reset email. Status: ${resetResponse.status}, Error: ${errorText}`, + ); return false; } @@ -1117,7 +1121,7 @@ export async function updateUserAttributes( return false; } - console.log(`[updateUserAttributes] Successfully updated attributes for user ${userId}`); + // console.log(`[updateUserAttributes] Successfully updated attributes for user ${userId}`); return true; } catch (error) { console.error(`[updateUserAttributes] Error updating attributes for user ${userId}:`, error);