Merge pull request '1' (#808) from BUG-20241119 into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/808
This commit is contained in:
chenhao 2024-11-19 15:57:13 +08:00
commit df682d599b
1 changed files with 3 additions and 5 deletions

View File

@ -2390,9 +2390,7 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe
err := _DefaultMoment.OpUpdate(ctx, &momentproto.OpUpdateReq{
Moment: &dbstruct.Moment{
Id: req.Moment.Id,
Status: req.Status,
Text: req.Text,
MediaComp: req.MediaComp,
Status: goproto.Int64(consts.Moment_Auditing),
},
})
if err == qmgo.ErrNoSuchDocuments {
@ -2426,7 +2424,7 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe
if len(imageaudittasks) > 0 || len(textaudittasks) > 0 || len(videomoderationtasks) > 0 {
// 封装动态审核任务
momentAuditTask := &dbstruct.MomentAuditTask{
AssociativeTableId: goproto.String(fmt.Sprint(util.DerefInt64(req.Moment.Id))),
AssociativeTableId: goproto.String(fmt.Sprint(req.Moment.GetId())),
ManuallyReviewStatus: goproto.Int64(consts.MomentManuallyReview_Waiting),
}