LT-275: Retrieving timepoint associations properly from backend
This commit is contained in:
1 parent
2d291251e9
commit
60b72683d5
9 files changed
+42
-22
No files matched your search
@@ -37,9 +37,9 @@ Meteor.methods({
|
||||
});
|
||||
},
|
||||
|
||||
retrieveTimepoints() {
|
||||
retrieveTimepoints(filter = {}) {
|
||||
OHIF.log.info('Retrieving Timepoints from the Server');
|
||||
return Timepoints.find().fetch();
|
||||
return Timepoints.find(filter).fetch();
|
||||
},
|
||||
|
||||
storeMeasurements(measurementData) {
|
||||
@@ -60,12 +60,13 @@ Meteor.methods({
|
||||
});
|
||||
},
|
||||
|
||||
retrieveMeasurements() {
|
||||
retrieveMeasurements(filter = {}) {
|
||||
OHIF.log.info('Retrieving Measurements from the Server');
|
||||
let measurementData = {};
|
||||
|
||||
|
||||
measurementTools.forEach(tool => {
|
||||
measurementData[tool.id] = MeasurementCollections[tool.id].find().fetch();
|
||||
measurementData[tool.id] = MeasurementCollections[tool.id].find(filter).fetch();
|
||||
});
|
||||
|
||||
return measurementData;
|
||||
|
||||
Reference in new issue
Block a user