mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Massive cleanup
- Removed GuildConfigs repository, moved to extensions - Moved StreamSettings extension to GuildConfig extensions - namespace NadekoBot.Core has been simplified to NadekoBot in many places (more to come) - Replaced some raw delete queries with simple linqtodb queries
This commit is contained in:
@@ -6,8 +6,9 @@ using NadekoBot.Core.Services;
|
||||
using NadekoBot.Core.Services.Database;
|
||||
using NadekoBot.Core.Services.Database.Models;
|
||||
using NadekoBot.Extensions;
|
||||
using NadekoBot.Modules.Administration;
|
||||
|
||||
namespace NadekoBot.Core.Modules.Gambling.Services
|
||||
namespace NadekoBot.Modules.Gambling.Services
|
||||
{
|
||||
public class ShopService : IShopService
|
||||
{
|
||||
@@ -19,7 +20,7 @@ namespace NadekoBot.Core.Modules.Gambling.Services
|
||||
}
|
||||
|
||||
private IndexedCollection<ShopEntry> GetEntriesInternal(IUnitOfWork uow, ulong guildId) =>
|
||||
uow.GuildConfigs.ForId(
|
||||
uow._context.GuildConfigsForId(
|
||||
guildId,
|
||||
set => set.Include(x => x.ShopEntries).ThenInclude(x => x.Items)
|
||||
)
|
||||
|
Reference in New Issue
Block a user