mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Fixed ordering of event timelime
refs https://github.com/TryGhost/Team/issues/469 We order the set of all events by created_at, but were not fetching the individual events with the same order applies, this resulted in incorrect results.
This commit is contained in:
parent
095c624172
commit
c8eb50bf57
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ module.exports = class EventRepository {
|
|||
options.limit = 10;
|
||||
}
|
||||
|
||||
options.order = 'created_at desc';
|
||||
|
||||
const allEventPages = await Promise.all([
|
||||
this.getNewsletterSubscriptionEvents(options),
|
||||
this.getSubscriptionEvents(options),
|
||||
|
|
Loading…
Add table
Reference in a new issue