wip sessionService
This commit is contained in:
parent
e85fae2f99
commit
097bed525e
1 changed files with 3 additions and 3 deletions
|
|
@ -62,9 +62,9 @@ class SessionServiceProvider {
|
|||
});
|
||||
};
|
||||
|
||||
async function isSessionAuthorized(sessionUuid) {
|
||||
const isSessionAuthorized = async (sessionUuid) => {
|
||||
const isSessionRelatedToPublicKey =
|
||||
await models.SessionRelatedToPublickey.findOne({
|
||||
await this.models.SessionRelatedToPublickey.findOne({
|
||||
where: {
|
||||
session_uuid: sessionUuid,
|
||||
},
|
||||
|
|
@ -75,7 +75,7 @@ class SessionServiceProvider {
|
|||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
async function getPublicKeyRelatedToSession(sessionUuid) {
|
||||
const sessionRelatedToPublickey =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue