Move removeCollections.js to server folder from both and check patientId while setting null array to toolState data
This commit is contained in:
1 parent
ca30e22464
commit
e6fd2e60b0
3 files changed
+17
-9
No files matched your search
@@ -48,10 +48,10 @@ Package.onUse(function (api) {
|
||||
|
||||
// Server functions
|
||||
api.addFiles('server/collections.js', 'server');
|
||||
api.addFiles('server/removeCollections.js', ['server']);
|
||||
|
||||
// Both client and server functions
|
||||
api.addFiles('both/collections.js', ['client', 'server']);
|
||||
api.addFiles('both/removeCollections.js', ['client', 'server']);
|
||||
|
||||
|
||||
// Library functions
|
||||
|
||||
+5
-3
@@ -1,8 +1,10 @@
|
||||
|
||||
Meteor.methods({
|
||||
"removeMeasurementsByPatientId": function(patientId) {
|
||||
Measurements.remove(
|
||||
{patientId: patientId},
|
||||
{multi: true}
|
||||
{patientId: patientId}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user