diff options
Diffstat (limited to 'lib/locations.ts')
| -rw-r--r-- | lib/locations.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/locations.ts b/lib/locations.ts index bb8b08cf..abf578d8 100644 --- a/lib/locations.ts +++ b/lib/locations.ts @@ -18,7 +18,7 @@ const dedup = (array) => export const getLocations = async () => { try { - const previous = await g("locations") || []; + const 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; @@ -45,6 +45,7 @@ export const getLocations = async () => { for await (const l of locations) { const username = l.tags["payment:coinos"]; if (username) { + console.log(username); const uid = await g(`user:${username}`); const user = await g(`user:${uid}`); if (user) l.osm_json.tags.user = pick(user, fields); |
