wip sessionService

This commit is contained in:
counterweight 2025-03-07 15:31:46 +01:00
parent e85fae2f99
commit 097bed525e
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

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