don't track EFCore objects that don't need to be updated
This commit is contained in:
parent
d42e73699b
commit
f7f88ff98f
24 changed files with 50 additions and 33 deletions
|
|
@ -62,7 +62,7 @@ public class GuildMemberAddResponder(
|
|||
.WithCurrentTimestamp()
|
||||
.WithFooter($"ID: {user.ID}");
|
||||
|
||||
var guildConfig = await db.GetGuildAsync(member.GuildID, ct);
|
||||
var guildConfig = await db.GetGuildAsync(member.GuildID, false, ct);
|
||||
var guildRes = await guildApi.GetGuildAsync(member.GuildID, withCounts: true, ct);
|
||||
if (guildRes.IsSuccess && guildRes.Entity.ApproximateMemberCount.IsDefined())
|
||||
builder.Description +=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue