Go: Fix error code (#16807)

### Summary

As title.

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-10 17:02:25 +08:00
committed by GitHub
parent 07a3523b09
commit 2a83ad6cb2
7 changed files with 282 additions and 281 deletions

View File

@@ -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
}