This commit is contained in:
parent
bbb3f06e3a
commit
191123ca64
|
@ -44,7 +44,7 @@ func (s *Service) CreateUpdateStreamerImageAudit(ctx *gin.Context, oldStreamer *
|
|||
|
||||
if newStreamer.Cover != nil && !util.IsInt64SliceEqualAsSet(oldStreamer.Cover.GetImageIds(), newStreamer.Cover.GetImageIds()) {
|
||||
tasks = append(tasks, &dbstruct.ImageAuditTask{
|
||||
Mid: newStreamer.Mid,
|
||||
Mid: oldStreamer.Mid,
|
||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||
AssociativeDatabase: goproto.String("streamer"),
|
||||
AssociativeTableName: goproto.String("streamer"),
|
||||
|
@ -57,7 +57,7 @@ func (s *Service) CreateUpdateStreamerImageAudit(ctx *gin.Context, oldStreamer *
|
|||
|
||||
if newStreamer.Album != nil && !util.IsInt64SliceEqualAsSet(oldStreamer.Album.GetImageIds(), newStreamer.Album.GetImageIds()) {
|
||||
tasks = append(tasks, &dbstruct.ImageAuditTask{
|
||||
Mid: newStreamer.Mid,
|
||||
Mid: oldStreamer.Mid,
|
||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||
AssociativeDatabase: goproto.String("streamer"),
|
||||
AssociativeTableName: goproto.String("streamer"),
|
||||
|
|
|
@ -44,7 +44,7 @@ func (s *Service) CreateUpdateStreamerTextAudit(ctx *gin.Context, oldStreamer *d
|
|||
if newStreamer.Bio != nil && oldStreamer.GetBio() != newStreamer.GetBio() {
|
||||
|
||||
tasks = append(tasks, &dbstruct.TextAuditTask{
|
||||
Mid: newStreamer.Mid,
|
||||
Mid: oldStreamer.Mid,
|
||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||
AssociativeDatabase: goproto.String("streamer"),
|
||||
AssociativeTableName: goproto.String("streamer"),
|
||||
|
@ -58,7 +58,7 @@ func (s *Service) CreateUpdateStreamerTextAudit(ctx *gin.Context, oldStreamer *d
|
|||
if newStreamer.AutoResponseMessage != nil && oldStreamer.GetAutoResponseMessage() != newStreamer.GetAutoResponseMessage() {
|
||||
|
||||
tasks = append(tasks, &dbstruct.TextAuditTask{
|
||||
Mid: newStreamer.Mid,
|
||||
Mid: oldStreamer.Mid,
|
||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||
AssociativeDatabase: goproto.String("streamer"),
|
||||
AssociativeTableName: goproto.String("streamer"),
|
||||
|
@ -154,15 +154,18 @@ func (s *Service) CreateStreamerAuthApprovalDetailsTextAudit(ctx *gin.Context, n
|
|||
func (s *Service) CreateZoneTextAudit(ctx *gin.Context, oldZone *dbstruct.Zone, newZone *dbstruct.Zone) (tasks []*dbstruct.TextAuditTask) {
|
||||
tasks = make([]*dbstruct.TextAuditTask, 0)
|
||||
|
||||
midp := newZone.Mid
|
||||
|
||||
if newZone.Profile != nil {
|
||||
|
||||
oldTextPtr := goproto.String("")
|
||||
if oldZone != nil {
|
||||
oldTextPtr = oldZone.Profile
|
||||
midp = oldZone.Mid
|
||||
}
|
||||
|
||||
tasks = append(tasks, &dbstruct.TextAuditTask{
|
||||
Mid: newZone.Mid,
|
||||
Mid: midp,
|
||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||
AssociativeDatabase: goproto.String("zone"),
|
||||
AssociativeTableName: goproto.String("zone"),
|
||||
|
|
|
@ -17,7 +17,7 @@ func (s *Service) CreateUpdateStreamerVideoModeration(ctx *gin.Context, oldStrea
|
|||
|
||||
if newStreamer.Shorts != nil && !util.IsInt64SliceEqualAsSet(oldStreamer.Shorts.GetVideoIds(), newStreamer.Shorts.GetVideoIds()) {
|
||||
tasks = append(tasks, &dbstruct.VideoModerationTask{
|
||||
Mid: newStreamer.Mid,
|
||||
Mid: oldStreamer.Mid,
|
||||
RouteUrl: goproto.String(ctx.Request.URL.Path),
|
||||
AssociativeDatabase: goproto.String("streamer"),
|
||||
AssociativeTableName: goproto.String("streamer"),
|
||||
|
|
Loading…
Reference in New Issue