Alex Polkhovsky

Results 2 issues of Alex Polkhovsky

I have this hook defined: ``` DealsCollection.before.insert(function (userId, doc) { console.log(doc); if (doc.priceDetails.startDate) { doc.priceDetails.startDateUTC = Meteor.call("makeUtcDate", doc.priceDetails.startDate); } }); ``` It never fires. I have `DealsCollection.after.insert` that fires just...

I added an option to send 401 (Unauthorized) instead of redirecting to '/login' by default. This should be useful for securing APIs when accessed by client-side script.