mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-13 10:55:58 +03:00
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:
parent
682cdb8c2d
commit
a7098aee46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user