From 9a7bdb315585322df0ce6f86cd0f67aec4f20772 Mon Sep 17 00:00:00 2001 From: huebyte Date: Sun, 23 Oct 2022 22:26:13 +0200 Subject: [PATCH] T #98 bug fixes --- .../Huppy.App/Commands/SlashCommands/ServerCommands.cs | 2 +- .../HuppyService.Service/HuppyService.Service.csproj | 6 ++++++ src/HuppyService/HuppyService.Service/Program.cs | 2 +- .../HuppyService.Service/Services/ServerService.cs | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs b/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs index 62b1719..223062a 100644 --- a/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs +++ b/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs @@ -98,7 +98,7 @@ public async Task GetServerInfo() [SlashCommand("configure", "Configure Huppy for your server")] [RequireUserPermission(GuildPermission.Administrator)] - public async Task ConfigureHuppy(bool? UseGreet = null, string? GreetingMessage = null, IRole? DefaultRole = null, bool? EnableNews = false, SocketGuildChannel? HuppyRoom = null, SocketGuildChannel? NewsRoom = null, SocketGuildChannel? GreetingRoom = null) + public async Task ConfigureHuppy(bool? UseGreet = null, string? GreetingMessage = null, IRole? DefaultRole = null, SocketGuildChannel? HuppyRoom = null, SocketGuildChannel? GreetingRoom = null) { var server = await _serverService.GetOrCreateAsync(Context.Guild.Id, Context.Guild.Name, Context.Guild.DefaultChannel.Id); diff --git a/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj b/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj index d5fdec1..e851131 100644 --- a/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj +++ b/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj @@ -32,4 +32,10 @@ + + + Always + + + diff --git a/src/HuppyService/HuppyService.Service/Program.cs b/src/HuppyService/HuppyService.Service/Program.cs index be0641a..f20addb 100644 --- a/src/HuppyService/HuppyService.Service/Program.cs +++ b/src/HuppyService/HuppyService.Service/Program.cs @@ -20,6 +20,6 @@ app.UseHttpLogging(); -app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909"); +app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client."); app.Run(); diff --git a/src/HuppyService/HuppyService.Service/Services/ServerService.cs b/src/HuppyService/HuppyService.Service/Services/ServerService.cs index 201cc47..6a4435e 100644 --- a/src/HuppyService/HuppyService.Service/Services/ServerService.cs +++ b/src/HuppyService/HuppyService.Service/Services/ServerService.cs @@ -151,6 +151,7 @@ public override async Task Update(ServerModel request, ServerCal }; await _serverRepository.UpdateAsync(server); + await _serverRepository.SaveChangesAsync(); return new CommonResponse() { IsSuccess = true }; } }