use nullable for field updates

This commit is contained in:
nkanaev
2026-05-11 10:27:50 +01:00
parent 450f64605e
commit 31274d17a5
6 changed files with 28 additions and 22 deletions

View File

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