0
Fork 0
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:
Fabien O'Carroll 2021-03-05 12:37:49 +00:00
parent 095c624172
commit c8eb50bf57

View file

@ -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),