Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix broken status in subscriber export query.

Kailash Nadh8c07a2a1c492
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)))
}