Fixed bug LT-85 (Location Response Selections). Work on LT-9 and LT-12
This commit is contained in:
1 parent
28cee350ff
commit
220ff065dc
44 files changed
+1515
-824
No files matched your search
@@ -1,23 +1,27 @@
|
||||
Meteor.publish('timepoints', function(patientId) {
|
||||
console.log('Publish timepoints');
|
||||
console.log('patientId ' + patientId);
|
||||
return Timepoints.find({patientId: patientId});
|
||||
return Timepoints.find({
|
||||
patientId: patientId
|
||||
});
|
||||
});
|
||||
|
||||
Meteor.publish('measurements', function(patientId) {
|
||||
console.log('Publish measurements');
|
||||
console.log('patientId ' + patientId);
|
||||
return Measurements.find({patientId: patientId});
|
||||
return Measurements.find({
|
||||
patientId: patientId
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Temporary fix to drop all Collections on server restart
|
||||
// http://stackoverflow.com/questions/23891631/meteor-how-can-i-drop-all-mongo-collections-and-clear-all-data-on-startup
|
||||
Meteor.startup(function(){
|
||||
var globalObject=Meteor.isClient?window:global;
|
||||
for(var property in globalObject){
|
||||
var object=globalObject[property];
|
||||
if(object instanceof Meteor.Collection){
|
||||
Meteor.startup(function() {
|
||||
var globalObject = Meteor.isClient ? window : global;
|
||||
for (var property in globalObject) {
|
||||
var object = globalObject[property];
|
||||
if (object instanceof Meteor.Collection) {
|
||||
object.remove({});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user