[backend/masto-client] Fix filter keyword edits failing (ISH-432)

This commit is contained in:
Laura Hausmann 2024-09-06 23:29:09 +02:00
parent e88878cf3e
commit 2fa0874d3c
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -216,7 +216,7 @@ public class FilterController(DatabaseContext db, QueueService queueSvc, EventSe
var keyword = request.WholeWord ? $"\"{request.Keyword}\"" : request.Keyword;
filter.Keywords.Add(keyword);
db.Update(keyword);
db.Update(filter);
await db.SaveChangesAsync();
eventSvc.RaiseFilterUpdated(this, filter);