fix gems amount

This commit is contained in:
Matteo Pagliazzi 2015-02-02 17:27:58 +01:00
parent 9018a45d91
commit 0c88d1fc11
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ api.sendGift = function(req, res, next){
if(member.preferences.emailNotifications.giftedGems !== false){
utils.txnEmail(member, 'gifted-gems', [
{name: 'GIFTER', content: utils.getUserInfo(user, ['name']).name},
{name: 'X_GEMS_GIFTED', content: amt}
{name: 'X_GEMS_GIFTED', content: req.body.gems.amount}
]);
}
return async.parallel([

View file

@ -123,7 +123,7 @@ exports.buyGems = function(data, cb) {
if(data.gift.member.preferences.emailNotifications.giftedGems !== false){
utils.txnEmail(member, 'gifted-gems', [
{name: 'GIFTER', content: utils.getUserInfo(data.user, ['name']).name},
{name: 'X_GEMS_GIFTED', content: amt}
{name: 'X_GEMS_GIFTED', content: data.gift.gems.amount || 20}
]);
}
}