wip sessionService
This commit is contained in:
parent
097bed525e
commit
53219924ff
1 changed files with 3 additions and 5 deletions
|
|
@ -1,7 +1,5 @@
|
|||
const uuid = require('uuid');
|
||||
|
||||
const models = require('../models');
|
||||
|
||||
const constants = require('../constants');
|
||||
|
||||
class SessionServiceProvider {
|
||||
|
|
@ -77,9 +75,9 @@ class SessionServiceProvider {
|
|||
return false;
|
||||
};
|
||||
|
||||
async function getPublicKeyRelatedToSession(sessionUuid) {
|
||||
const getPublicKeyRelatedToSession = async (sessionUuid) => {
|
||||
const sessionRelatedToPublickey =
|
||||
await models.SessionRelatedToPublickey.findOne({
|
||||
await this.models.SessionRelatedToPublickey.findOne({
|
||||
where: {
|
||||
session_uuid: sessionUuid,
|
||||
},
|
||||
|
|
@ -90,7 +88,7 @@ class SessionServiceProvider {
|
|||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
createSession,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue