feat(conversations): align filter payload basics
This commit is contained in:
@@ -503,6 +503,10 @@ func (h *ConversationHandler) Filter(c *gin.Context) {
|
||||
|
||||
result, svcErr := h.conversationSvc.Filter(c.Request.Context(), accountID, userID, req, p.Offset, p.PerPage)
|
||||
if svcErr != nil {
|
||||
if len(req.Payload) > 0 {
|
||||
c.JSON(http.StatusUnprocessableEntity, gin.H{"error": svcErr.Error()})
|
||||
return
|
||||
}
|
||||
handleServiceError(c, svcErr)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user