Added a Sales Sheet page along with other changes.

This commit is contained in:
Wynne Crisman
2017-05-09 13:51:26 -07:00
parent 184ce1133f
commit e1b0b19589
39 changed files with 3581 additions and 5610 deletions

View File

@@ -46,16 +46,16 @@ if(Meteor.isServer) Meteor.publish('venues', function() {
return Venues.find({});
});
// //Requires: meteor add matb33:collection-hooks
if(Meteor.isServer) {
Venues.before.insert(function(userId, doc) {
// check(userId, String);
doc.createdAt = new Date();
});
Venues.before.update(function(userId, doc, fieldNames, modifier, options) {
modifier.$set = modifier.$set || {}; //Make sure there is an object.
modifier.$set.updatedAt = new Date();
});
// //Requires: meteor add matb33:collection-hooks
//Venues.before.insert(function(userId, doc) {
// // check(userId, String);
// doc.createdAt = new Date();
//});
//Venues.before.update(function(userId, doc, fieldNames, modifier, options) {
// modifier.$set = modifier.$set || {}; //Make sure there is an object.
// modifier.$set.updatedAt = new Date();
//});
Meteor.methods({
createVenue: function(name, type) {