[management] Log user id on account mismatch (#4101)

This commit is contained in:
Bethuel Mmbaga
2025-07-04 10:51:58 +03:00
committed by GitHub
parent f603ddf35e
commit 8c09a55057

View File

@@ -550,7 +550,7 @@ func (am *DefaultAccountManager) SaveOrAddUsers(ctx context.Context, accountID,
ctx, transaction, groupsMap, accountID, initiatorUserID, initiatorUser, update, addIfNotExists, settings, ctx, transaction, groupsMap, accountID, initiatorUserID, initiatorUser, update, addIfNotExists, settings,
) )
if err != nil { if err != nil {
return fmt.Errorf("failed to process user update: %w", err) return fmt.Errorf("failed to process update for user %s: %w", update.Id, err)
} }
usersToSave = append(usersToSave, updatedUser) usersToSave = append(usersToSave, updatedUser)
addUserEvents = append(addUserEvents, userEvents...) addUserEvents = append(addUserEvents, userEvents...)