diff options
| author | Adam Soltys <[email protected]> | 2024-10-31 09:03:23 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-31 09:03:23 -0700 |
| commit | 2ff6a289f142636beee1846132049cae7cfd82ea (patch) | |
| tree | a23313129b1aa54c8e7925471fc3e9f873192a86 /lib/locations.ts | |
| parent | b3203b848a25b5aadebfe8fff3e0f01dda1919fa (diff) | |
| download | coinos-server-2ff6a289f142636beee1846132049cae7cfd82ea.tar.gz coinos-server-2ff6a289f142636beee1846132049cae7cfd82ea.zip | |
detect internal payments
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); |
