Skip to content

Commit

Permalink
fix: update suggestion message on status change
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Jul 21, 2023
1 parent 2628f29 commit 88bd8fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SuggestionBot/Services/SuggestionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 88bd8fc

Please sign in to comment.