fix: restore user img_calls quota when image task run failed

This commit is contained in:
RockYang
2023-12-29 10:41:29 +08:00
parent 816e4a096e
commit 70c46d098b
4 changed files with 6 additions and 0 deletions

View File

@@ -617,6 +617,7 @@ const fetchRunningJobs = (userId) => {
message: "任务ID" + jobs[i]['task_id'],
type: 'error',
})
imgCalls.value += 1
continue
}
_jobs.push(jobs[i])

View File

@@ -596,6 +596,7 @@ onMounted(() => {
message: "任务ID" + jobs[i]['task_id'],
type: 'error',
})
imgCalls.value += 1
continue
}
_jobs.push(jobs[i])