Skip to content

Commit

Permalink
Fix broken status in subscriber export query.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 20, 2024
1 parent 71f9e86 commit 8c07a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/subscribers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand Down

0 comments on commit 8c07a2a

Please sign in to comment.