From 88bd8fcc0d7bc4ddb067fbf1f7ef28cffb01cdf7 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 22 Jul 2023 00:26:38 +0100 Subject: [PATCH] fix: update suggestion message on status change --- SuggestionBot/Services/SuggestionService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SuggestionBot/Services/SuggestionService.cs b/SuggestionBot/Services/SuggestionService.cs index 7a01bc9..8d93d57 100644 --- a/SuggestionBot/Services/SuggestionService.cs +++ b/SuggestionBot/Services/SuggestionService.cs @@ -441,6 +441,8 @@ public bool SetStatus(Suggestion suggestion, SuggestionStatus status, DiscordMem using SuggestionContext context = _contextFactory.CreateDbContext(); context.Suggestions.Update(suggestion); context.SaveChanges(); + + _ = UpdateSuggestionAsync(suggestion); return true; }