mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
fixup! Refactored migration to run faster
This commit is contained in:
parent
3165315f84
commit
61058fb0a4
@ -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…
Reference in New Issue
Block a user