diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
| commit | ad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch) | |
| tree | fbf2a59f81771b2938f474c8e7b35a497d2960e4 /lib/locations.ts | |
| parent | 9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff) | |
| download | coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip | |
formatting
Diffstat (limited to 'lib/locations.ts')
| -rw-r--r-- | lib/locations.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/locations.ts b/lib/locations.ts index 660645a8..91bc4599 100644 --- a/lib/locations.ts +++ b/lib/locations.ts @@ -6,10 +6,7 @@ import got from "got"; const dedup = (array) => Object.values( array.reduce((acc, obj) => { - if ( - !acc[obj.id] || - new Date(obj.updated_at) > new Date(acc[obj.id].updated_at) - ) { + if (!acc[obj.id] || new Date(obj.updated_at) > new Date(acc[obj.id].updated_at)) { acc[obj.id] = obj; } return acc; |
