.jr will no longer fail if the user isn't in the database yet, fixes #399

This commit is contained in:
Kwoth
2023-01-20 22:36:57 +01:00
parent 992aa781fa
commit 76fedc5ff1

View File

@@ -88,6 +88,9 @@ public sealed class CurrencyService : ICurrencyService, INService
long amount,
TxData txData)
{
if (amount == 0)
return true;
var wallet = await GetWalletAsync(userId);
var result = await wallet.Take(amount, txData);
if(result)