in-app notification bug fix

This commit is contained in:
Mazyar
2026-05-31 03:05:40 +03:30
parent bca94cd69a
commit ef57b302d9
4 changed files with 134 additions and 110 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ func (h *NotificationHandler) AdminNotifications(c echo.Context) error {
return response.ValidationError(c, err.Error(), "")
}
form.Recipient = userID
form.Recipient = []string{userID}
form.Status = "sent"
pagination, err := response.NewPagination(c)
@@ -261,7 +261,7 @@ func (h *NotificationHandler) CustomerNotifications(c echo.Context) error {
return response.ValidationError(c, err.Error(), "")
}
form.Recipient = userID
form.Recipient = []string{userID}
form.Status = "sent"
pagination, err := response.NewPagination(c)