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:
parent
3373b5bbd1
commit
b5e85c55dc
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue