From f9d02406632f9e76c3e3242e86dbcadba5c0e2ef Mon Sep 17 00:00:00 2001 From: counterweight Date: Sat, 8 Feb 2025 17:19:18 +0100 Subject: [PATCH] find matching sessionnpubbed --- src/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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({