1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-10 16:00:05 +00:00

refactor(session): implemented session state

This commit is contained in:
Yury
2024-10-30 15:33:06 +03:00
parent 03670cf0d6
commit f94ddc0352
7 changed files with 84 additions and 76 deletions

View File

@@ -25,7 +25,7 @@ import {
SASSessionController
} from '../../../controllers/internal'
import * as ProcessProgramModule from '../../../controllers/internal/processProgram'
import { Session } from '../../../types'
import { Session, SessionState } from '../../../types'
const clientId = 'someclientID'
@@ -493,10 +493,7 @@ const mockedGetSession = async () => {
const session: Session = {
id: sessionId,
ready: true,
inUse: true,
consumed: false,
completed: false,
state: SessionState.pending,
creationTimeStamp,
deathTimeStamp,
path: sessionFolder