conflict #153
|
@ -60,7 +60,7 @@ func (s *Service) CreateUpdateStreamerImageAudit(ctx *gin.Context, oldStreamer *
|
||||||
|
|
||||||
func (s *Service) CreateMomentImageAudit(ctx *gin.Context, newMoment *dbstruct.Moment) (tasks []*dbstruct.ImageAuditTask) {
|
func (s *Service) CreateMomentImageAudit(ctx *gin.Context, newMoment *dbstruct.Moment) (tasks []*dbstruct.ImageAuditTask) {
|
||||||
|
|
||||||
if newMoment.MediaComp != nil && newMoment.MediaComp.ImageIds != nil {
|
if newMoment.MediaComp != nil && len(newMoment.MediaComp.GetImageIds()) > 0 {
|
||||||
tasks = append(tasks, &dbstruct.ImageAuditTask{
|
tasks = append(tasks, &dbstruct.ImageAuditTask{
|
||||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||||
AssociativeDatabase: goproto.String("moment"),
|
AssociativeDatabase: goproto.String("moment"),
|
||||||
|
|
Loading…
Reference in New Issue