fix(session): increased session + bug fixed

This commit is contained in:
Saad Jutt
2022-03-24 20:22:06 +05:00
parent dd56a95314
commit 117a53ceea
3 changed files with 6 additions and 5 deletions
@@ -23,7 +23,9 @@ export class FileUploadController {
const sessionController = getSessionController()
session = await sessionController.getSession()
session.inUse = true
// marking consumed true, so that it's not available
// as readySession for any other request
session.consumed = true
req.sasSession = session
+1 -1
View File
@@ -31,7 +31,7 @@ export class SessionController {
? readySessions[0]
: await this.createSession()
if (readySessions.length < 2) this.createSession()
if (readySessions.length < 3) this.createSession()
return session
}