Explorar el Código

fix: prevent refund on video task update error

CaIon hace 4 meses
padre
commit
bcf93a2c05
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 {
 	if err := task.Update(); err != nil {
 		common.SysLog("UpdateVideoTask task error: " + err.Error())
 		common.SysLog("UpdateVideoTask task error: " + err.Error())
+		shouldRefund = false
 	}
 	}
 
 
 	if shouldRefund {
 	if shouldRefund {