aboutsummaryrefslogtreecommitdiffstats
path: root/lib/locations.js
diff options
context:
space:
mode:
authorJohn Barratt <[email protected]>2023-02-28 12:20:10 -0800
committerJohn Barratt <[email protected]>2023-02-28 12:20:10 -0800
commit58e996a4ac227162f171e84530fe898cb504e045 (patch)
treeebc59d724acfcca6298bddb540811b7413d15980 /lib/locations.js
parent6f5ffb59b83fb57546c46df6a610b8efaf1252cf (diff)
downloadcoinos-server-58e996a4ac227162f171e84530fe898cb504e045.tar.gz
coinos-server-58e996a4ac227162f171e84530fe898cb504e045.zip
add db connect try catch and commit before pull
Diffstat (limited to 'lib/locations.js')
-rw-r--r--lib/locations.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locations.js b/lib/locations.js
index 39883555..be2df811 100644
--- a/lib/locations.js
+++ b/lib/locations.js
@@ -10,7 +10,7 @@ export let getLocations = async () => {
locations = locations.filter(
l => l["osm_json"].tags && l["osm_json"].tags["payment:coinos"] === "yes"
);
-
+
await s("locations", locations);
} catch (e) {}