remove log updateUserAttributes success
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m8s

This commit is contained in:
Warunee Tamkoo 2026-05-23 09:17:49 +07:00
parent 61a09acbad
commit 32282b016b

View file

@ -1019,7 +1019,9 @@ export async function resetPassword(username: string) {
if (!users.ok) { if (!users.ok) {
const errorText = await users.text(); 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; return false;
} }
@ -1047,7 +1049,9 @@ export async function resetPassword(username: string) {
if (!resetResponse.ok) { if (!resetResponse.ok) {
const errorText = await resetResponse.text(); 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; return false;
} }
@ -1117,7 +1121,7 @@ export async function updateUserAttributes(
return false; return false;
} }
console.log(`[updateUserAttributes] Successfully updated attributes for user ${userId}`); // console.log(`[updateUserAttributes] Successfully updated attributes for user ${userId}`);
return true; return true;
} catch (error) { } catch (error) {
console.error(`[updateUserAttributes] Error updating attributes for user ${userId}:`, error); console.error(`[updateUserAttributes] Error updating attributes for user ${userId}:`, error);