find matching sessionnpubbed
This commit is contained in:
parent
1ef39baa57
commit
f9d0240663
1 changed files with 8 additions and 0 deletions
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue