mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added newsletter relation to activity feed
refs https://github.com/TryGhost/Team/issues/1478 Makes sure the newsletter relation is returned in the activity feed for susbcribe events (aka newsletter events). Tests in https://github.com/TryGhost/Ghost/pull/14585
This commit is contained in:
parent
31ad855aa7
commit
2b01997629
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports = class EventRepository {
|
||||||
async getNewsletterSubscriptionEvents(options = {}, filters = {}) {
|
async getNewsletterSubscriptionEvents(options = {}, filters = {}) {
|
||||||
options = {
|
options = {
|
||||||
...options,
|
...options,
|
||||||
withRelated: ['member'],
|
withRelated: ['member', 'newsletter'],
|
||||||
filter: []
|
filter: []
|
||||||
};
|
};
|
||||||
if (filters['data.created_at']) {
|
if (filters['data.created_at']) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue