wip sessionService
This commit is contained in:
parent
53219924ff
commit
a2e44553d6
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
|||
const uuid = require('uuid');
|
||||
|
||||
const constants = require('../constants');
|
||||
|
||||
class SessionServiceProvider {
|
||||
constructor({ models, constants, invitesService }) {
|
||||
this.models = models;
|
||||
|
|
@ -15,7 +13,7 @@ class SessionServiceProvider {
|
|||
const expiryTimestamp = new Date(currentTimestamp.getTime());
|
||||
expiryTimestamp.setSeconds(
|
||||
expiryTimestamp.getSeconds() +
|
||||
constants.DEFAULT_SESSION_DURATION_SECONDS
|
||||
this.constants.DEFAULT_SESSION_DURATION_SECONDS
|
||||
);
|
||||
|
||||
return await this.models.SessionCreated.create({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue