get notification fix
This commit is contained in:
@@ -259,6 +259,17 @@ func (h *NotificationHandler) CustomerNotifications(c echo.Context) error {
|
||||
// Call service
|
||||
notifications, err := h.service.GetNotifications(c.Request().Context(), form, pagination)
|
||||
if err != nil {
|
||||
// Log the actual error for debugging
|
||||
c.Logger().Error("GetNotifications failed", map[string]interface{}{
|
||||
"error": err.Error(),
|
||||
"status": form.Status,
|
||||
"priority": form.Priority,
|
||||
"eventType": form.EventType,
|
||||
"recipient": form.Recipient,
|
||||
"limit": pagination.Limit,
|
||||
"offset": pagination.Offset,
|
||||
"page": (pagination.Offset / pagination.Limit) + 1,
|
||||
})
|
||||
return response.InternalServerError(c, "Failed to get notifications")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user