From 8c07a2a1c492138b337ca26d3a82d1d23fd2f2fd Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 14 Oct 2024 10:25:53 +0530 Subject: [PATCH] Fix broken status in subscriber export query. --- internal/core/subscribers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/subscribers.go b/internal/core/subscribers.go index 759c1119..d49e8285 100644 --- a/internal/core/subscribers.go +++ b/internal/core/subscribers.go @@ -216,7 +216,7 @@ func (c *Core) ExportSubscribers(query string, subIDs, listIDs []int, subStatus } defer tx.Rollback() - if _, err := tx.Query(stmt, nil, 0, nil, 1); err != nil { + if _, err := tx.Query(stmt, nil, 0, nil, subStatus, 1); err != nil { return nil, echo.NewHTTPError(http.StatusBadRequest, c.i18n.Ts("subscribers.errorPreparingQuery", "error", pqErrMsg(err))) }