diff --git a/cmd/subscribers.go b/cmd/subscribers.go index 306be690..f366f67c 100644 --- a/cmd/subscribers.go +++ b/cmd/subscribers.go @@ -462,6 +462,10 @@ func handleBlocklistSubscribersByQuery(c echo.Context) error { return err } + if req.Query == "" { + return echo.NewHTTPError(http.StatusBadRequest, app.i18n.Ts("globals.messages.invalidFields", "name", "query")) + } + if err := app.core.BlocklistSubscribersByQuery(req.Query, req.ListIDs, req.SubscriptionStatus); err != nil { return err }