Update SampleClientOnlyBuild
This commit is contained in:
1 parent
b966f35cf8
commit
111e084883
6 files changed
+2042
-26
No files matched your search
@@ -12,27 +12,6 @@ measurementTools.forEach(tool => {
|
||||
const Timepoints = new Mongo.Collection('timepoints');
|
||||
Timepoints._debugName = 'Timepoints';
|
||||
|
||||
Timepoints.find().observe({
|
||||
added(document) {
|
||||
console.warn('TIMEPOINT ADDED')
|
||||
console.warn(document);
|
||||
},
|
||||
remove(docId) {
|
||||
console.warn('TIMEPOINT REMOVED');
|
||||
console.warn(docId);
|
||||
}
|
||||
});
|
||||
|
||||
// Drop our collections for testing purposes
|
||||
Meteor.startup(() => {
|
||||
if (Meteor.settings.dropCollections) {
|
||||
Timepoints.remove({});
|
||||
measurementTools.forEach(tool => {
|
||||
MeasurementCollections[tool.id].remove({});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// TODO: Make storage use update instead of clearing the entire collection and
|
||||
// re-inserting everything.
|
||||
Meteor.methods({
|
||||
|
||||
Reference in new issue
Block a user