Gambling Tracker will only track successful removes

This commit is contained in:
Kwoth
2022-10-06 10:55:12 +02:00
parent 2f77fd57b0
commit e6b7c31a72
2 changed files with 8 additions and 7 deletions

View File

@@ -90,7 +90,8 @@ public sealed class CurrencyService : ICurrencyService, INService
{
var wallet = await GetWalletAsync(userId);
var result = await wallet.Take(amount, txData);
await _txTracker.TrackRemove(amount, txData);
if(result)
await _txTracker.TrackRemove(amount, txData);
return result;
}