mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-26 10:23:28 +08:00
Go: add context (#17314)
### Summary As title. --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -309,7 +309,7 @@ func (h *Handler) DeleteUser(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
result, err := h.service.DeleteUser(username)
|
||||
result, err := h.service.DeleteUser(c.Request.Context(), username)
|
||||
if err != nil {
|
||||
common.ErrorWithCode(c, common.CodeServerError, err.Error())
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user