From ca31d46e0e8270e9eaa06b2a455b779ece13723d Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 21 Jul 2014 22:39:36 -0600 Subject: [PATCH] tmp(coupons): just export c._id to csv --- src/controllers/coupon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/coupon.js b/src/controllers/coupon.js index 2bad8cb1c2..4907729d7b 100644 --- a/src/controllers/coupon.js +++ b/src/controllers/coupon.js @@ -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]; }))); }); }