This commit is contained in:
Leufolium 2024-07-19 19:13:02 +08:00
parent 8ac99776b2
commit 3b8ed9a4e1
1 changed files with 4 additions and 3 deletions

View File

@ -360,9 +360,10 @@ func executeRollBack(lastValidTask *dbstruct.VideoModerationTask) (err error) {
}
if err = _DefaultVideoModerationTask.OpUpdate(ctx, &video_moderation_task_proto.OpUpdateReq{
VideoModerationTask: &dbstruct.VideoModerationTask{
Id: lastValidTask.Id,
Status: goproto.Int64(consts.VideoModeration_Rollbacked),
Remarks: goproto.String("任务审核失败,已将字段回退至之前的版本"),
Id: lastValidTask.Id,
Status: goproto.Int64(consts.VideoModeration_Rollbacked),
Remarks: goproto.String("任务审核失败,已将字段回退至之前的版本"),
BusinessOpinion: lastValidTask.BusinessOpinion,
},
}); err != nil {
logger.Error("_DefaultVideoModeration OpUpdate fail: %v\n", err)