From 7a8061fc72e9147ddaab8d2e53fa9076a87752c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sun, 25 Feb 2024 20:11:20 -0800 Subject: [PATCH] Fix regression introduced in PR #2402 --- internal/storage/entry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/storage/entry.go b/internal/storage/entry.go index 0c583ded..64486f12 100644 --- a/internal/storage/entry.go +++ b/internal/storage/entry.go @@ -252,8 +252,8 @@ func (s *Storage) cleanupEntries(feedID int64, entryHashes []string) error { entries WHERE feed_id=$1 AND - status=$3 AND - NOT (hash=ANY($4)) + status=$2 AND + NOT (hash=ANY($3)) ` if _, err := s.db.Exec(query, feedID, model.EntryStatusRemoved, pq.Array(entryHashes)); err != nil { return fmt.Errorf(`store: unable to cleanup entries: %v`, err)