diff options
| -rw-r--r-- | routes/lnurl.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index 05308d41..f841b87f 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -222,8 +222,10 @@ lnurlServer.bindToHook("login", async (key) => { if (user) { const k = await db.Key.findOrCreate({ - user_id: user.id, - hex: key, + where: { + user_id: user.id, + hex: key, + } }); l.info("added key", username, k); |
