all serviced

This commit is contained in:
counterweight 2025-02-10 01:42:46 +01:00
parent 79f02f70cc
commit b4bd150d93
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 9 additions and 9 deletions

View file

@ -19,5 +19,13 @@ async function relateSessionToNpub(sessionUuid, npub) {
});
}
async function isSessionAlreadyRelatedToNpub(sessionUuid, npub) {
if (await SessionNpubbed.findOne({ where: { 'session_uuid': sessionUuid, npub } })) {
return true;
}
return false;
}
exports.createSession = createSession;
exports.relateSessionToNpub = relateSessionToNpub;
exports.isSessionAlreadyRelatedToNpub = isSessionAlreadyRelatedToNpub;