feat: exorcise entity framework core from most responders
This commit is contained in:
parent
33b78a7ac5
commit
5891f28f7c
32 changed files with 743 additions and 145 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
using Catalogger.Backend.Cache.InMemoryCache;
|
||||
using Catalogger.Backend.Database;
|
||||
using Catalogger.Backend.Database.Dapper.Repositories;
|
||||
using Catalogger.Backend.Database.Queries;
|
||||
using Catalogger.Backend.Extensions;
|
||||
using Catalogger.Backend.Services;
|
||||
|
|
@ -28,7 +29,7 @@ namespace Catalogger.Backend.Bot.Responders.Guilds;
|
|||
|
||||
public class GuildUpdateResponder(
|
||||
ILogger logger,
|
||||
DatabaseContext db,
|
||||
GuildRepository guildRepository,
|
||||
GuildCache guildCache,
|
||||
UserCache userCache,
|
||||
WebhookExecutorService webhookExecutor
|
||||
|
|
@ -97,7 +98,7 @@ public class GuildUpdateResponder(
|
|||
|
||||
if (embed.Fields.Count != 0)
|
||||
{
|
||||
var guildConfig = await db.GetGuildAsync(evt.ID, false, ct);
|
||||
var guildConfig = await guildRepository.GetAsync(evt.ID);
|
||||
webhookExecutor.QueueLog(
|
||||
guildConfig,
|
||||
LogChannelType.GuildUpdate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue