refactor feed updating

This commit is contained in:
nkanaev
2026-05-11 09:59:21 +01:00
parent 391e2dd2c8
commit 450f64605e
5 changed files with 46 additions and 37 deletions

View File

@@ -80,7 +80,7 @@ func TestFeedIcons(t *testing.T) {
db, _ := storage.New(":memory:")
icon := []byte("test")
feed := db.CreateFeed("", "", "", "", nil)
db.UpdateFeedIcon(feed.Id, &icon)
db.UpdateFeed(feed.Id, storage.UpdateFeedParams{Icon: &icon, UpdateIcon: true})
log.SetOutput(os.Stderr)
recorder := httptest.NewRecorder()