wip sessionService

This commit is contained in:
counterweight 2025-03-07 15:35:22 +01:00
parent 097bed525e
commit 53219924ff
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -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,