mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Holy shit EF Core tracking is pissing me off so much now
This commit is contained in:
@@ -51,8 +51,9 @@ public class TempExcludeCommand : ICommand
|
||||
$"{user.FormatUsername()}, {targetUser.KfUsername} can't be excluded as he's banned.", true);
|
||||
return;
|
||||
}
|
||||
targetGambler = await db.Gamblers.FirstOrDefaultAsync(x => x.Id == targetGambler.Id, cancellationToken: ctx);
|
||||
|
||||
var activeExclusion = await Money.GetActiveExclusionAsync(targetGambler.Id, ctx);
|
||||
var activeExclusion = await Money.GetActiveExclusionAsync(targetGambler!.Id, ctx);
|
||||
if (activeExclusion != null)
|
||||
{
|
||||
var length = DateTimeOffset.UtcNow - activeExclusion.Expires;
|
||||
|
||||
Reference in New Issue
Block a user