mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(cloudcommon): invoke model.PostUpdate when differences exist (#15070)
This commit is contained in:
@@ -1684,10 +1684,9 @@ func updateItem(manager IModelManager, item IModel, ctx context.Context, userCre
|
||||
if len(diff) > 0 {
|
||||
OpsLog.LogEvent(item, ACT_UPDATE, diff, userCred)
|
||||
logclient.AddActionLogWithContext(ctx, item, logclient.ACT_UPDATE, diff, userCred, true)
|
||||
item.PostUpdate(ctx, userCred, query, data)
|
||||
}
|
||||
|
||||
item.PostUpdate(ctx, userCred, query, data)
|
||||
|
||||
return getItemDetails(manager, item, ctx, userCred, query)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user