diff --git a/src/app.js b/src/app.js index b9c91b8..d2fab4a 100644 --- a/src/app.js +++ b/src/app.js @@ -51,6 +51,14 @@ app.post('/api/session-npubbed', async (req, res) => { console.log("This is the npub: ${npub}"); + const thereIsAMatchinRecord = boolean(await SessionNpubbed.findOne( + { + where: { + sessionUuid, + npub + } + } + )); try { await SessionNpubbed.create({