mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
tmp(coupons): just export c._id to csv
This commit is contained in:
parent
439828d2b1
commit
ca31d46e0e
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ api.getCoupons = function(req,res,next) {
|
|||
Coupon.find({},{}, options, function(err,coupons){
|
||||
//res.header('Content-disposition', 'attachment; filename=coupons.csv');
|
||||
res.csv([['code']].concat(_.map(coupons, function(c){
|
||||
return ["Hi, it's nice to meet you! Want some exclusive UnConventional Armor? You can redeem the coupon code at the end of this message at http://habitrpg.com/#/options/settings/coupon (If you haven't already created an account, you'll need to do that first.) See you in the game! COUPON CODE: "+ c._id];
|
||||
return [c._id];
|
||||
})));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue