chore: stabilize chatwoot parity baseline
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user