mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05: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,
 | 
			
		||||
        TxData txData)
 | 
			
		||||
    {
 | 
			
		||||
        if (amount == 0)
 | 
			
		||||
            return true;
 | 
			
		||||
        
 | 
			
		||||
        var wallet = await GetWalletAsync(userId);
 | 
			
		||||
        var result = await wallet.Take(amount, txData);
 | 
			
		||||
        if(result) 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user