Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
fix: mods last updated logic (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
cujarrett authored May 13, 2021
1 parent fef1eda commit 4998658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/dynamodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module.exports.getLastSoldMods = async () => {
}

const sortedResults = results.sort((first, second) => {
return new Date(second.timestamp) - new Date(first.timestamp)
return new Date(first.timestamp) - new Date(second.timestamp)
})

return sortedResults
Expand Down

0 comments on commit 4998658

Please sign in to comment.