aboutsummaryrefslogtreecommitdiffstats
path: root/lib/locations.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-16 15:33:22 -0700
committerAdam Soltys <[email protected]>2024-10-16 15:33:22 -0700
commite0ea06df4572c5183c5a4fd1697ca59c2614672c (patch)
treebd42b8194aa3485964beaef5ec2f8708e506503a /lib/locations.ts
parent4501538630af9d6026fe5661da0386d1b5d65008 (diff)
downloadcoinos-server-e0ea06df4572c5183c5a4fd1697ca59c2614672c.tar.gz
coinos-server-e0ea06df4572c5183c5a4fd1697ca59c2614672c.zip
atomic payment reversal
Diffstat (limited to 'lib/locations.ts')
-rw-r--r--lib/locations.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locations.ts b/lib/locations.ts
index 4122c25a..560d5259 100644
--- a/lib/locations.ts
+++ b/lib/locations.ts
@@ -8,7 +8,7 @@ export let getLocations = async () => {
let previous = await g("locations");
let since = await g("locations:since");
if (!since) since = "2022-09-19T00:00:00Z";
- if (Date.now() - new Date(since).getTime() < 60000) return;
+ if (Date.now() - new Date(since).getTime() < 60000) return;
let locations: Array<any> = await got(
`https://api.btcmap.org/v2/elements?updated_since=${since}`,