From af7f57650e45f8f4630f78421d07f3e35a187939 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Fri, 28 Jul 2017 23:32:03 +0200 Subject: [PATCH] fix pq syntax error on NOT --- models/torrents/find.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ")