somre more template fixes
This commit is contained in:
parent
23f18bd736
commit
4eef0897ce
1 changed files with 2 additions and 2 deletions
4
app.js
4
app.js
|
@ -158,7 +158,7 @@ const processCompletedDeposits = (callback) => {
|
|||
if (res.length > 0) {
|
||||
return async.eachSeries(res, (completedDeposit, ecb) => {
|
||||
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) => {
|
||||
if (err) {
|
||||
return ecb(err, null);
|
||||
|
@ -179,7 +179,7 @@ const processCompletedDeposits = (callback) => {
|
|||
}, cb);
|
||||
}
|
||||
|
||||
return cb(null, null);
|
||||
return cb(null, true);
|
||||
}
|
||||
], callback);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue