mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
.jr will no longer fail if the user isn't in the database yet, fixes #399
This commit is contained in:
@@ -88,6 +88,9 @@ public sealed class CurrencyService : ICurrencyService, INService
|
|||||||
long amount,
|
long amount,
|
||||||
TxData txData)
|
TxData txData)
|
||||||
{
|
{
|
||||||
|
if (amount == 0)
|
||||||
|
return true;
|
||||||
|
|
||||||
var wallet = await GetWalletAsync(userId);
|
var wallet = await GetWalletAsync(userId);
|
||||||
var result = await wallet.Take(amount, txData);
|
var result = await wallet.Take(amount, txData);
|
||||||
if(result)
|
if(result)
|
||||||
|
Reference in New Issue
Block a user