Update work.go
This commit is contained in:
parent
77248eb885
commit
b922b4bd88
@ -1015,8 +1015,6 @@ func RePublish(ctx *gin.Context) {
|
||||
req.PublishSource = cast.PublishSourceENUM_RePublishType_MANUAL
|
||||
}
|
||||
newCtx := NewCtxWithUserInfo(ctx)
|
||||
service.Success(ctx, req) //FIXME
|
||||
return
|
||||
err = republishCore(ctx, newCtx, req)
|
||||
if err != nil {
|
||||
service.Error(ctx, err)
|
||||
@ -1080,9 +1078,10 @@ func republishCore(gCtx *gin.Context, newCtx context.Context, req *cast.RePublis
|
||||
zap.L().Error("RePublish UpsertTaskList failed", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
if err = PublishWork(newCtx, &cast.PublishReq{WorkUuids: resp.WorkUuids}); err != nil {
|
||||
//FIXME
|
||||
/* if err = PublishWork(newCtx, &cast.PublishReq{WorkUuids: resp.WorkUuids}); err != nil {
|
||||
return err
|
||||
}
|
||||
}*/
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user