diff options
| author | Adam Soltys <[email protected]> | 2023-12-29 10:11:25 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-29 10:12:10 +0000 |
| commit | c474dbb763480ec923cd49f5cac0e07a310552a7 (patch) | |
| tree | 7376dece597eaea7999e732f83b44cfdfe521c1c /routes/lnurl.js | |
| parent | 46522875683db9123f8a6fe9746a5c5db6f1638e (diff) | |
| download | coinos-server-c474dbb763480ec923cd49f5cac0e07a310552a7.tar.gz coinos-server-c474dbb763480ec923cd49f5cac0e07a310552a7.zip | |
error handling
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index 79bac995..81a74991 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -78,6 +78,7 @@ export default { async lnurl({ params: { id }, query: { amount, nostr } }, res) { let uid = await g(`lnurl:${id}`); let user = await g(`user:${uid}`); + if (!user) user = await migrate(uid); let { username } = user; username = username.replace(/\s/g, "").toLowerCase(); |
