mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 08:34:27 -05:00 
			
		
		
		
	Fixed users not gaining club xp
This commit is contained in:
		@@ -188,6 +188,13 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
 | 
			
		||||
                            },
 | 
			
		||||
                            (_, n) => n);
 | 
			
		||||
 | 
			
		||||
                    await ctx.Clubs
 | 
			
		||||
                        .Where(x => x.Members.Any(m => group.Contains(m.UserId)))
 | 
			
		||||
                        .UpdateAsync(old => new()
 | 
			
		||||
                        {
 | 
			
		||||
                            Xp = old.Xp + (group.Key * old.Members.Count(m => group.Contains(m.UserId)))
 | 
			
		||||
                        });
 | 
			
		||||
                    
 | 
			
		||||
                    dus.AddRange(items);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user