1
Fork 0
mirror of https://gitlab.com/Kwoth/nadekobot.git synced 2024-10-03 04:23:13 +00:00

Fix build

This commit is contained in:
Kwoth 2023-10-23 18:32:08 +00:00
parent 94c08b0b9e
commit a28be0d343
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<IncludeBuildOutput>false</IncludeBuildOutput> <IncludeBuildOutput>false</IncludeBuildOutput>
<IsRoslynComponent>true</IsRoslynComponent> <IsRoslynComponent>true</IsRoslynComponent>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -193,7 +193,7 @@ public class ClubService : INService, IClubService
{ {
discordUser = null; discordUser = null;
using var uow = _db.GetDbContext(); using var uow = _db.GetDbContext();
var club = uow.Clubs.GetByOwnerOrAdmin(clubOwnerUserId); var club = uow.Set<ClubInfo>().GetByOwnerOrAdmin(clubOwnerUserId);
if (club is null) if (club is null)
return ClubDenyResult.NotOwnerOrAdmin; return ClubDenyResult.NotOwnerOrAdmin;