Skip to content

Commit

Permalink
Unbreak JSON serialization failing on the /properties API due to circ…
Browse files Browse the repository at this point in the history
…ular data reference
  • Loading branch information
sulkaharo committed Dec 16, 2019
1 parent 83c22f9 commit 1312256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/cob.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ function init (ctx) {

var treatmentCOB = (treatments !== undefined && treatments.length) ? cob.fromTreatments(treatments, devicestatus, profile, time, spec_profile) : {};

result = treatmentCOB;
result = _.cloneDeep(treatmentCOB);
result.source = 'Care Portal';
result.treatmentCOB = treatmentCOB;
result.treatmentCOB = _.cloneDeep(treatmentCOB);
}

return addDisplay(result);
Expand Down

0 comments on commit 1312256

Please sign in to comment.