Fix broken status in subscriber export query.

This commit is contained in:
Kailash Nadh 2024-10-14 10:25:53 +05:30
parent 71f9e861e4
commit 8c07a2a1c4

View file

@ -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)))
}