nexushub-commands 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,8 +23,8 @@ let DepositByPromocodeCommand = class DepositByPromocodeCommand extends evogram_
|
|
|
23
23
|
});
|
|
24
24
|
yield context.user.log(0, `Пополнение через промокод`, {
|
|
25
25
|
message: `<i>— Код промокода: <code>${promocode.code}</code></i>\n` +
|
|
26
|
-
`<i>— Сумма: ${yield promocode.amount.convert()}</i>\n\n` +
|
|
27
|
-
`<i>— Баланс: ${yield context.user.db.balance.convert()}</i>`,
|
|
26
|
+
`<i>— Сумма: ${yield promocode.amount.convert({ from: 'RUB', to: 'RUB' })}</i>\n\n` +
|
|
27
|
+
`<i>— Баланс: ${yield context.user.db.balance.convert({ from: 'RUB', to: 'RUB' })}</i>`,
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -54,8 +54,8 @@ export class DepositByPromocodeCommand extends Command {
|
|
|
54
54
|
await context.user.log(0, `Пополнение через промокод`, {
|
|
55
55
|
message:
|
|
56
56
|
`<i>— Код промокода: <code>${promocode.code}</code></i>\n` +
|
|
57
|
-
`<i>— Сумма: ${await promocode.amount.convert()}</i>\n\n` +
|
|
58
|
-
`<i>— Баланс: ${await context.user.db.balance.convert()}</i>`,
|
|
57
|
+
`<i>— Сумма: ${await promocode.amount.convert({ from: 'RUB', to: 'RUB' })}</i>\n\n` +
|
|
58
|
+
`<i>— Баланс: ${await context.user.db.balance.convert({ from: 'RUB', to: 'RUB' })}</i>`,
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|