0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed email batches and recipient pagination

This commit is contained in:
Simon Backx 2022-12-02 14:49:21 +01:00
parent 928a73c536
commit b81cc13e48

View file

@ -161,7 +161,9 @@ export default class Debug extends Component {
@task
*_fetchEmailBatches() {
const data = {
include: 'count.recipients'
include: 'count.recipients',
limit: 'all',
order: 'status asc, created_at desc'
};
let statsUrl = this.ghostPaths.url.api(`emails/${this.post.email.id}/batches`);
@ -186,7 +188,8 @@ export default class Debug extends Component {
@task
*_fetchRecipientFailures() {
const data = {
include: 'member,email_recipient'
include: 'member,email_recipient',
limit: 'all'
};
let statsUrl = this.ghostPaths.url.api(`/emails/${this.post.email.id}/recipient-failures`);
let result = yield this.ajax.request(statsUrl, {data});