mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #493 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-post-update to release/2.0.0
* commit 'ab846cfad77d8f01eab1f118dba1d1012c0ba4a1': 添加更新操作后的操作
This commit is contained in:
@@ -993,6 +993,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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user