Added members to all member events in getEventTimeline

refs https://github.com/TryGhost/Team/issues/1277

- This makes the three new email recipient events similar to the preexisting events
This commit is contained in:
Thibaut Patel 2022-01-18 19:02:44 +01:00
parent 682cdb8c2d
commit a7098aee46

View File

@ -111,6 +111,7 @@ module.exports = class EventRepository {
}
async getEmailDelieveredEvents(options = {}) {
options.withRelated = ['member'];
options.filter = 'delivered_at:-null';
const {data: models, meta} = await this._EmailRecipient.findPage(
options
@ -134,6 +135,7 @@ module.exports = class EventRepository {
}
async getEmailOpenedEvents(options = {}) {
options.withRelated = ['member'];
options.filter = 'opened_at:-null';
const {data: models, meta} = await this._EmailRecipient.findPage(
options
@ -157,6 +159,7 @@ module.exports = class EventRepository {
}
async getEmailFailedEvents(options = {}) {
options.withRelated = ['member'];
options.filter = 'failed_at:-null';
const {data: models, meta} = await this._EmailRecipient.findPage(
options