1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 13:30:04 +00:00

chore(lint): fixed Session.ts

This commit is contained in:
Yury Shkoda
2023-09-21 17:52:28 +03:00
parent 2dc11630e4
commit bf35791655

View File

@@ -190,8 +190,7 @@ ${autoExecContent}`
}
private scheduleSessionDestroy(session: Session) {
setTimeout(
async () => {
setTimeout(async () => {
if (session.inUse) {
// adding 10 more minutes
const newDeathTimeStamp = parseInt(session.deathTimeStamp) + 10 * 1000
@@ -201,9 +200,7 @@ ${autoExecContent}`
} else {
await this.deleteSession(session)
}
},
parseInt(session.deathTimeStamp) - new Date().getTime() - 100
)
}, parseInt(session.deathTimeStamp) - new Date().getTime() - 100)
}
}