mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-23 17:18:32 +02:00
fix admin balance display
This commit is contained in:
@@ -308,7 +308,8 @@ class AlertService {
|
||||
*/
|
||||
async alertPayoutFailed(payout) {
|
||||
const cryptoType = process.env.CRYPTO_TYPE || 'XMR';
|
||||
const amountFormatted = (payout.amount / 1e12).toFixed(6);
|
||||
const divisor = cryptoType === 'WOW' ? 1e11 : 1e12;
|
||||
const amountFormatted = (payout.amount / divisor).toFixed(6);
|
||||
|
||||
await this.sendAlert('payout_failed', {
|
||||
subject: `💀 Payout Permanently Failed - ${amountFormatted} ${cryptoType}`,
|
||||
|
||||
Reference in New Issue
Block a user