mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
fix(coupons): fix to limit
This commit is contained in:
parent
ca31d46e0e
commit
5c309444e0
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ api.generateCoupons = function(req,res,next) {
|
|||
api.getCoupons = function(req,res,next) {
|
||||
var options = {sort:'seq'};
|
||||
if (req.query.limit) options.limit = req.query.limit;
|
||||
if (req.query.skip) options.limit = req.query.skip;
|
||||
if (req.query.skip) options.skip = req.query.skip;
|
||||
Coupon.find({},{}, options, function(err,coupons){
|
||||
//res.header('Content-disposition', 'attachment; filename=coupons.csv');
|
||||
res.csv([['code']].concat(_.map(coupons, function(c){
|
||||
|
|
|
|||
Loading…
Reference in a new issue