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 uuid = require('uuid');
|
||||||
|
|
||||||
const models = require('../models');
|
|
||||||
|
|
||||||
const constants = require('../constants');
|
const constants = require('../constants');
|
||||||
|
|
||||||
class SessionServiceProvider {
|
class SessionServiceProvider {
|
||||||
|
|
@ -77,9 +75,9 @@ class SessionServiceProvider {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
async function getPublicKeyRelatedToSession(sessionUuid) {
|
const getPublicKeyRelatedToSession = async (sessionUuid) => {
|
||||||
const sessionRelatedToPublickey =
|
const sessionRelatedToPublickey =
|
||||||
await models.SessionRelatedToPublickey.findOne({
|
await this.models.SessionRelatedToPublickey.findOne({
|
||||||
where: {
|
where: {
|
||||||
session_uuid: sessionUuid,
|
session_uuid: sessionUuid,
|
||||||
},
|
},
|
||||||
|
|
@ -90,7 +88,7 @@ class SessionServiceProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
createSession,
|
createSession,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue