aboutsummaryrefslogtreecommitdiffstats
path: root/lib/locations.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-24 13:18:42 -0800
committerAdam Soltys <[email protected]>2026-02-24 13:18:42 -0800
commitad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch)
treefbf2a59f81771b2938f474c8e7b35a497d2960e4 /lib/locations.ts
parent9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff)
downloadcoinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz
coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip
formatting
Diffstat (limited to 'lib/locations.ts')
-rw-r--r--lib/locations.ts5
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;