Skip to content

Commit 5042339

Browse files
mlsmayconbcmmbaga
andauthored
Update management/server/account.go
Co-authored-by: Bethuel Mmbaga <[email protected]>
1 parent ec47a84 commit 5042339

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

management/server/account.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,11 @@ func (am *DefaultAccountManager) handleGroupsPropagationSettings(ctx context.Con
476476
}
477477

478478
func (am *DefaultAccountManager) handleAutoUpdateVersionSettings(ctx context.Context, oldSettings, newSettings *types.Settings, userID, accountID string) {
479-
if oldSettings.AutoUpdateVersion != newSettings.AutoUpdateVersion {
480-
am.StoreEvent(ctx, userID, accountID, accountID, activity.AccountAutoUpdateVersionUpdated, map[string]any{
481-
"old_value": oldSettings.AutoUpdateVersion,
482-
"new_value": newSettings.AutoUpdateVersion,
483-
})
484-
}
479+
if oldSettings.AutoUpdateVersion != newSettings.AutoUpdateVersion {
480+
am.StoreEvent(ctx, userID, accountID, accountID, activity.AccountAutoUpdateVersionUpdated, map[string]any{
481+
"version": newSettings.AutoUpdateVersion,
482+
})
483+
}
485484
}
486485

487486
func (am *DefaultAccountManager) handleInactivityExpirationSettings(ctx context.Context, oldSettings, newSettings *types.Settings, userID, accountID string) error {

0 commit comments

Comments
 (0)