in-app notification bug fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user