From a1c7d08e6a021a5d053f66954712f750f4c0a953 Mon Sep 17 00:00:00 2001
From: Dean Sheather <dean@deansheather.com>
Date: Wed, 8 Apr 2020 08:34:19 +1000
Subject: [PATCH] fixup! Fix delete objects bug

---
 lib/db/sql.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/db/sql.go b/lib/db/sql.go
index 4859c29..1964b67 100644
--- a/lib/db/sql.go
+++ b/lib/db/sql.go
@@ -119,7 +119,7 @@ SELECT
 FROM
 	objects
 WHERE
-	"type" = 0,
+	"type" = 0 AND
 	sha256_hash = $1
 `
 
-- 
GitLab