Fix regression introduced in PR #2402
This commit is contained in:
parent
bca84bac8b
commit
7a8061fc72
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue