somre more template fixes

This commit is contained in:
Akinwale Ariwodola 2017-09-25 17:24:04 +01:00
parent 23f18bd736
commit 4eef0897ce

4
app.js
View file

@ -158,7 +158,7 @@ const processCompletedDeposits = (callback) => {
if (res.length > 0) { if (res.length > 0) {
return async.eachSeries(res, (completedDeposit, ecb) => { return async.eachSeries(res, (completedDeposit, ecb) => {
setTimeout(() => { setTimeout(() => {
sendPMUsingTemplate('ondeposit.completed', { amount: completedDeposit.Amount, balance: completedDeposit.Balance }, sendPMUsingTemplate('ondeposit.completed', { how_to_use_url: config.howToUseUrl, amount: completedDeposit.Amount, balance: completedDeposit.Balance },
'Deposit completed!', completedDeposit.Username, (err) => { 'Deposit completed!', completedDeposit.Username, (err) => {
if (err) { if (err) {
return ecb(err, null); return ecb(err, null);
@ -179,7 +179,7 @@ const processCompletedDeposits = (callback) => {
}, cb); }, cb);
} }
return cb(null, null); return cb(null, true);
} }
], callback); ], callback);
}; };