From 2d8050d267c6c7ade07f59fc198e4daac4ad8a05 Mon Sep 17 00:00:00 2001 From: Priyanka Pradeep Date: Wed, 7 Sep 2022 16:18:19 +0530 Subject: [PATCH] update project in submissions from observation --- controllers/v1/observationSubmissionsController.js | 4 ++-- controllers/v1/observationsController.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/v1/observationSubmissionsController.js b/controllers/v1/observationSubmissionsController.js index de5ee603..8f2f0919 100644 --- a/controllers/v1/observationSubmissionsController.js +++ b/controllers/v1/observationSubmissionsController.js @@ -237,9 +237,9 @@ module.exports = class ObservationSubmissions extends Abstract { } - if( solutionDocument.referenceFrom === messageConstants.common.PROJECT ) { + if( observationDocument.referenceFrom === messageConstants.common.PROJECT ) { submissionDocument["referenceFrom"] = messageConstants.common.PROJECT; - submissionDocument["project"] = solutionDocument.project; + submissionDocument["project"] = observationDocument.project; } let criteriaId = new Array; diff --git a/controllers/v1/observationsController.js b/controllers/v1/observationsController.js index a093a00d..021c9a35 100644 --- a/controllers/v1/observationsController.js +++ b/controllers/v1/observationsController.js @@ -1187,9 +1187,9 @@ module.exports = class Observations extends Abstract { ) } - if( solutionDocument.referenceFrom === messageConstants.common.PROJECT ) { + if( observationDocument.referenceFrom === messageConstants.common.PROJECT ) { submissionDocument["referenceFrom"] = messageConstants.common.PROJECT; - submissionDocument["project"] = solutionDocument.project; + submissionDocument["project"] = observationDocument.project; } let assessment = {};