0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added limit option to /members/events API

refs https://github.com/TryGhost/Team/issues/469

The initial implementation was just to get us going with the dashboard
but the requirements have changed now, rather than updating the code we
allow to pass the `limit` options so the Admin can choose how many
events to display.
This commit is contained in:
Fabien O'Carroll 2021-02-23 12:37:38 +00:00
parent 3373b5bbd1
commit b5e85c55dc

View file

@ -478,11 +478,14 @@ module.exports = {
},
activityFeed: {
options: [
'limit'
],
permissions: {
method: 'browse'
},
async query() {
const events = await membersService.api.events.getEventTimeline();
async query(frame) {
const events = await membersService.api.events.getEventTimeline(frame.options);
return {
events
};