Fix delete endpoint
This commit is contained in:
parent
89175ef9da
commit
f4d4ff031f
@ -97,9 +97,8 @@ namespace ChaosBot.WebServer.App.ApiControllers
|
||||
|
||||
await using ChaosbotContext dbContext = new ChaosbotContext();
|
||||
|
||||
IQueryable<T> query = GetBasicQuery(dbContext);
|
||||
List<T> toDelete = FilterQueryMultipleForDeletion(query, guildId, deleteParameter);
|
||||
toDelete.Add(FilterQueryForDeletion(query, guildId, deleteParameter));
|
||||
List<T> toDelete = FilterQueryMultipleForDeletion(GetBasicQuery(dbContext), guildId, deleteParameter);
|
||||
toDelete.Add(FilterQueryForDeletion(GetBasicQuery(dbContext), guildId, deleteParameter));
|
||||
|
||||
if (toDelete.Count == 0)
|
||||
return NotFound();
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 56e8caf708d791a2b05b12e82fd407905147fafd
|
||||
Subproject commit 154e88ae2ef4733b97efbe3f6193973723f4d571
|
||||
Loading…
Reference in New Issue
Block a user