mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-13 02:55:04 +08:00
Fix broken status in subscriber export query.
This commit is contained in:
parent
71f9e861e4
commit
8c07a2a1c4
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue