wip sessionService
This commit is contained in:
parent
0f4ccf9847
commit
49c3e970cb
1 changed files with 3 additions and 3 deletions
|
|
@ -27,8 +27,8 @@ class SessionServiceProvider {
|
|||
});
|
||||
};
|
||||
|
||||
async function isSessionValid(sessionUuid) {
|
||||
const currentSession = await models.SessionCreated.findOne({
|
||||
const isSessionValid = async (sessionUuid) => {
|
||||
const currentSession = await this.models.SessionCreated.findOne({
|
||||
where: {
|
||||
uuid: sessionUuid,
|
||||
},
|
||||
|
|
@ -43,7 +43,7 @@ class SessionServiceProvider {
|
|||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
const relateSessionToPublicKey = async (sessionUuid, publicKey) => {
|
||||
if (!(await isSessionValid(sessionUuid))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue