mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
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:
parent
1be6817b0e
commit
9a142cd906
@ -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');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user