aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--walrss/internal/core/feeds.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/walrss/internal/core/feeds.go b/walrss/internal/core/feeds.go
index 600977d..63110f5 100644
--- a/walrss/internal/core/feeds.go
+++ b/walrss/internal/core/feeds.go
@@ -52,7 +52,7 @@ func GetFeed(st *state.State, id string) (res *db.Feed, err error) {
}
func DeleteFeed(st *state.State, id string) error {
- _, err := st.Data.NewSelect().Model((*db.Feed)(nil)).Where("id = ?", id).Exec(context.Background())
+ _, err := st.Data.NewDelete().Model((*db.Feed)(nil)).Where("id = ?", id).Exec(context.Background())
return err
}