Skip to content

Commit

Permalink
Merge pull request #97 from priyanka-TL/release4.10
Browse files Browse the repository at this point in the history
updating project info from observation
  • Loading branch information
aks30 authored Sep 7, 2022
2 parents c859763 + 2d8050d commit 568a6e2
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 568a6e2

Please sign in to comment.