Utilize EF 7 bulk delete operations instead of RemoveRange

This commit is contained in:
Slendy 2023-04-18 20:45:42 -05:00
commit f03d1d7c17
No known key found for this signature in database
GPG key ID: 7288D68361B91428
8 changed files with 17 additions and 21 deletions

View file

@ -38,9 +38,7 @@ public class AuthenticationController : ControllerBase
invalidTokens = new[] { Platform.RPCS3, };
}
this.database.GameTokens.RemoveWhere(t => t.UserId == user.UserId && invalidTokens.Contains(t.Platform));
await this.database.SaveChangesAsync();
await this.database.GameTokens.RemoveWhere(t => t.UserId == user.UserId && invalidTokens.Contains(t.Platform));
return this.Redirect("~/authentication");
}