mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
fixup! Refactored migration to run faster
This commit is contained in:
parent
3165315f84
commit
61058fb0a4
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports = createTransactionalMigration(
|
|||
const events = eventsByMember[memberId];
|
||||
|
||||
events.sort((a, b) => {
|
||||
return new Date(b) - new Date(a);
|
||||
return new Date(b.created_at) - new Date(a.created_at);
|
||||
});
|
||||
|
||||
const mostRecentStatusEvent = events[0];
|
||||
|
|
Loading…
Add table
Reference in a new issue