diff --git a/models/torrents/find.go b/models/torrents/find.go index e56e3452..b9cd29da 100644 --- a/models/torrents/find.go +++ b/models/torrents/find.go @@ -127,7 +127,7 @@ func findOrderBy(parameters *structs.WhereParams, orderBy string, limit int, off if !deleted { conditionArray = append(conditionArray, "deleted_at IS NULL") } else { - conditionArray = append(conditionArray, "deleted_at NOT NULL") + conditionArray = append(conditionArray, "deleted_at IS NOT NULL") } conditions := strings.Join(conditionArray, " AND ")