0
Fork 0
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:
Simon Backx 2022-04-26 14:18:34 +02:00
parent 31ad855aa7
commit 2b01997629

View file

@ -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']) {