mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'c169fdb8dce18d1106d2db6f71b324e6bfc01fdf': 添加更新操作后的操作
This commit is contained in:
@@ -1035,6 +1035,7 @@ func updateItem(manager IModelManager, item IModel, ctx context.Context, userCre
|
||||
if diff != nil {
|
||||
diffStr := sqlchemy.UpdateDiffString(diff)
|
||||
if len(diffStr) > 0 {
|
||||
item.PostUpdate(ctx, userCred, query, dataDict)
|
||||
OpsLog.LogEvent(item, ACT_UPDATE, diffStr, userCred)
|
||||
logclient.AddActionLog(item, logclient.ACT_UPDATE, diffStr, userCred, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user