mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-13 16:38:26 +08:00
Go: Fix error code (#16807)
### Summary As title. --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -1476,7 +1476,7 @@ func (h *DocumentHandler) RemoveIngestionTasks(c *gin.Context) {
|
||||
}
|
||||
|
||||
if req.Tasks == nil || len(req.Tasks) == 0 {
|
||||
common.ErrorWithCode(c, 1, "task_ids is required")
|
||||
common.ErrorWithCode(c, common.CodeLackResources, "task_ids is required")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user