all serviced
This commit is contained in:
parent
79f02f70cc
commit
b4bd150d93
2 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue