Fix regression introduced in PR #2402

This commit is contained in:
Frédéric Guillot 2024-02-25 20:11:20 -08:00
parent bca84bac8b
commit 7a8061fc72
1 changed files with 2 additions and 2 deletions

View File

@ -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)