find matching sessionnpubbed

This commit is contained in:
counterweight 2025-02-08 17:19:18 +01:00
parent 1ef39baa57
commit f9d0240663
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

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