From f4870810775e7b871b6764994296413f8e05011c Mon Sep 17 00:00:00 2001 From: VISHNUDAS-tunerlabse Date: Fri, 9 Sep 2022 19:42:08 +0530 Subject: [PATCH] hotfix 44.10.0 console added --- databaseQueries/projects.js | 1 + module/userProjects/helper.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/databaseQueries/projects.js b/databaseQueries/projects.js index 7c92b5bd..cf9ee14f 100644 --- a/databaseQueries/projects.js +++ b/databaseQueries/projects.js @@ -119,6 +119,7 @@ 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 b1a6f0ee..cf77f0da 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 ) {