From fffd21b348d829b3d42b7bff6bed7d0abdf61acf Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Tue, 8 Feb 2022 21:45:56 +0500 Subject: [PATCH] chore: quick fixes --- SASjsServer.drawio | 89 +++++++++++++++++++++++++ api/src/controllers/internal/Session.ts | 1 - api/src/utils/connectDB.ts | 2 +- 3 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 SASjsServer.drawio diff --git a/SASjsServer.drawio b/SASjsServer.drawio new file mode 100644 index 0000000..55ed8e5 --- /dev/null +++ b/SASjsServer.drawio @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/api/src/controllers/internal/Session.ts b/api/src/controllers/internal/Session.ts index 18df643..5921a25 100644 --- a/api/src/controllers/internal/Session.ts +++ b/api/src/controllers/internal/Session.ts @@ -38,7 +38,6 @@ export class SessionController { private async createSession(): Promise { const sessionId = generateUniqueFileName(generateTimestamp()) - console.log('creating session', sessionId) const sessionFolder = path.join(getTmpSessionsFolderPath(), sessionId) const creationTimeStamp = sessionId.split('-').pop() as string diff --git a/api/src/utils/connectDB.ts b/api/src/utils/connectDB.ts index 4f2c9e6..88284c5 100644 --- a/api/src/utils/connectDB.ts +++ b/api/src/utils/connectDB.ts @@ -7,7 +7,7 @@ import { getRealPath } from '@sasjs/utils' export const connectDB = async () => { // NOTE: when exporting app.js as agent for supertest - // we should exlcude connecting to the real database + // we should exclude connecting to the real database if (process.env.NODE_ENV === 'test') { process.driveLoc = path.join(process.cwd(), 'tmp') return