Added a Sales Sheet page along with other changes.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user