mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 03:34:35 +00:00
chore: clean up
This commit is contained in:
@@ -21,6 +21,9 @@ const execFilePromise = promisify(execFile)
|
||||
export class SessionController {
|
||||
private sessions: Session[] = []
|
||||
|
||||
private getReadySessions = (): Session[] =>
|
||||
this.sessions.filter((sess: Session) => sess.ready && !sess.consumed)
|
||||
|
||||
public async getSession() {
|
||||
const readySessions = this.getReadySessions()
|
||||
|
||||
@@ -33,9 +36,6 @@ export class SessionController {
|
||||
return session
|
||||
}
|
||||
|
||||
private getReadySessions = (): Session[] =>
|
||||
this.sessions.filter((sess: Session) => sess.ready && !sess.consumed)
|
||||
|
||||
private async createSession(): Promise<Session> {
|
||||
const sessionId = generateUniqueFileName(generateTimestamp())
|
||||
console.log('creating session', sessionId)
|
||||
@@ -108,8 +108,6 @@ export class SessionController {
|
||||
// the autoexec deletes the code.sas file
|
||||
await this.waitForSession(session)
|
||||
|
||||
console.log('session is ready', sessionId)
|
||||
|
||||
return session
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user