From 9cf78499ea85af489e92926f4b4be618aac4d4ca Mon Sep 17 00:00:00 2001 From: Akash Shah Date: Fri, 9 Sep 2022 20:52:38 +0530 Subject: [PATCH] Remove console logs --- databaseQueries/projects.js | 1 - module/userProjects/helper.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/databaseQueries/projects.js b/databaseQueries/projects.js index cf9ee14f..7c92b5bd 100644 --- a/databaseQueries/projects.js +++ b/databaseQueries/projects.js @@ -119,7 +119,6 @@ module.exports = class Projects { try { let projectDocument = await database.models.projects.create(projectData); - console.log("122",projectDocument) return resolve(projectDocument); } catch (error) { diff --git a/module/userProjects/helper.js b/module/userProjects/helper.js index cf77f0da..f6dad846 100644 --- a/module/userProjects/helper.js +++ b/module/userProjects/helper.js @@ -1163,7 +1163,7 @@ module.exports = class UserProjectsHelper { let getUserProfileFromObservation = false; if( bodyData && Object.keys(bodyData).length > 0 ) { - console.log("1166",bodyData) + if( bodyData.hasAcceptedTAndC ) { projectCreation.data.hasAcceptedTAndC = bodyData.hasAcceptedTAndC; } @@ -1195,7 +1195,7 @@ module.exports = class UserProjectsHelper { if( !entityInformation.success ) { return resolve(entityInformation); } - console.log("1198",entityInformation.data) + projectCreation.data["entityInformation"] = _entitiesMetaInformation( entityInformation.data )[0]; @@ -1204,7 +1204,7 @@ module.exports = class UserProjectsHelper { } } - console.log("1207",projectCreation.data) + projectCreation.data.status = CONSTANTS.common.STARTED; projectCreation.data.lastDownloadedAt = new Date(); @@ -1263,7 +1263,7 @@ module.exports = class UserProjectsHelper { } projectCreation.data.userRoleInformation = userRoleInformation; - console.log("1266",projectCreation.data) + let project = await projectQueries.createProject(projectCreation.data); if ( addReportInfoToSolution && project.solutionId ) {