aboutsummaryrefslogtreecommitdiffstats
path: root/lib/locations.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-19 14:37:18 -0800
committerAdam Soltys <[email protected]>2023-12-20 14:39:08 -0800
commitb67ca07bac3a0cb78f9b3c19a783c3253f06c29f (patch)
tree1664d33bd1c514d016a7a1983af257197d4e5ac7 /lib/locations.js
parent337ca8c555f188d64c9f065972d443377adf042f (diff)
downloadcoinos-server-b67ca07bac3a0cb78f9b3c19a783c3253f06c29f.tar.gz
coinos-server-b67ca07bac3a0cb78f9b3c19a783c3253f06c29f.zip
biome
Diffstat (limited to 'lib/locations.js')
-rw-r--r--lib/locations.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/locations.js b/lib/locations.js
index dc2c9d54..72bc20b5 100644
--- a/lib/locations.js
+++ b/lib/locations.js
@@ -7,14 +7,14 @@ import { fields, pick } from "$lib/utils";
export let getLocations = async () => {
try {
let locations = await got(
- "https://api.btcmap.org/v2/elements?updated_since=2022-09-19T00:00:00Z"
+ "https://api.btcmap.org/v2/elements?updated_since=2022-09-19T00:00:00Z",
).json();
locations = locations.filter(
(l) =>
l["osm_json"].tags &&
l["osm_json"].tags["payment:coinos"] === "yes" &&
- l["osm_json"]["type"] === "node"
+ l["osm_json"]["type"] === "node",
);
for await (let l of locations) {