diff --git a/core/server/models/member-subscribe-event.js b/core/server/models/member-subscribe-event.js index 4946a0fc10..ca6bb73729 100644 --- a/core/server/models/member-subscribe-event.js +++ b/core/server/models/member-subscribe-event.js @@ -17,6 +17,15 @@ const MemberSubscribeEvent = ghostBookshelf.Model.extend({ } } }, { + permittedOptions(methodName) { + const options = ghostBookshelf.Model.permittedOptions.call(this, methodName); + + if (methodName === 'findAll') { + return options.concat('aggregateSubscriptionDeltas'); + } + + return options + }, async edit() { throw new errors.IncorrectUsageError('Cannot edit MemberSubscribeEvent'); },