Parcourir la source

fix: prevent refund on video task update error

CaIon il y a 4 mois
Parent
commit
bcf93a2c05
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      controller/task_video.go

+ 1 - 0
controller/task_video.go

@@ -255,6 +255,7 @@ func updateVideoSingleTask(ctx context.Context, adaptor channel.TaskAdaptor, cha
 	}
 	if err := task.Update(); err != nil {
 		common.SysLog("UpdateVideoTask task error: " + err.Error())
+		shouldRefund = false
 	}
 
 	if shouldRefund {