chore: stabilize chatwoot parity baseline

This commit is contained in:
2026-06-04 18:12:50 +08:00
parent 8ac150bc7b
commit 42cdab880c
39 changed files with 1028 additions and 696 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ func (h *CategoryHandler) Update(c *gin.Context) {
category, err := h.svc.Update(c.Request.Context(), uint(categoryID), &req)
if err != nil {
applogger.L().Errorf("Update category: %v", err)
response.AbortWithStatusError(c, http.StatusInternalServerError, response.ErrInternal, "failed to update category")
response.AbortWithStatusError(c, http.StatusUnprocessableEntity, response.ErrInternal, "failed to update category")
return
}
@@ -114,7 +114,7 @@ func (h *CategoryHandler) Delete(c *gin.Context) {
if err := h.svc.Delete(c.Request.Context(), uint(categoryID)); err != nil {
applogger.L().Errorf("Delete category: %v", err)
response.AbortWithStatusError(c, http.StatusInternalServerError, response.ErrInternal, "failed to delete category")
response.AbortWithStatusError(c, http.StatusUnprocessableEntity, response.ErrInternal, "failed to delete category")
return
}
@@ -164,4 +164,4 @@ func (h *CategoryHandler) Reorder(c *gin.Context) {
}
response.NoContent(c)
}
}