Commit 6eca5760 by CalciumIon

chore: mj

parent f134b9cf
...@@ -150,13 +150,8 @@ func UpdateMidjourneyTaskBulk() { ...@@ -150,13 +150,8 @@ func UpdateMidjourneyTaskBulk() {
if (task.Progress != "100%" && responseItem.FailReason != "") || (task.Progress == "100%" && task.Status == "FAILURE") { if (task.Progress != "100%" && responseItem.FailReason != "") || (task.Progress == "100%" && task.Status == "FAILURE") {
common.LogInfo(ctx, task.MjId+" 构建失败,"+task.FailReason) common.LogInfo(ctx, task.MjId+" 构建失败,"+task.FailReason)
task.Progress = "100%" task.Progress = "100%"
err = model.CacheUpdateUserQuota(task.UserId) if task.Quota != 0 {
if err != nil { shouldReturnQuota = true
common.LogError(ctx, "error update user quota cache: "+err.Error())
} else {
if task.Quota != 0 {
shouldReturnQuota = true
}
} }
} }
err = task.Update() err = task.Update()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment