Skip to content

Commit

Permalink
update project in submissions from observation
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanka-TL committed Sep 7, 2022
1 parent fcb24e3 commit 2d8050d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/v1/observationSubmissionsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions controllers/v1/observationsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 2d8050d

Please sign in to comment.