feat(coupons): cleaner lookup/validation of coupon code

This commit is contained in:
Tyler Renelle
2014-04-17 17:36:10 -06:00
parent 5af5314a8d
commit 39b5176c1c
2 changed files with 2 additions and 17 deletions
-15
View File
@@ -15,21 +15,6 @@ api.generateCoupons = function(req,res,next) {
if(err) return next(err);
res.send(200);
});
// var skip, count=req.params.count || 1;
// async.waterfall([
// function(cb) {
// Coupon.findOne({}, {}, {sort: '-seq'}, cb);
// },
// function(_lastCoupon,cb){
// skip = _lastCoupon ? _lastCoupon.seq : 0;
// Coupon.generate(req.params.event, count, cb);
// }
// ], function(err){
// if (err) return next(err);
// //res.redirect('/api/v2/coupons?skip='+skip+'&limit='+count);
// res.send(200);
// })
}
api.getCoupons = function(req,res,next) {