Added aggregateSubscriptionDeltas to permitted options

no-issue

This was missing from https://github.com/TryGhost/Ghost/commit/1dc6fdc.
Without it the option will never be passed into the customQuery method.
This commit is contained in:
Fabien O'Carroll 2021-02-10 10:01:04 +00:00
parent 1be6817b0e
commit 9a142cd906

View File

@ -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');
},