From 878ddbbf09d774150901888e2f202ddaa685bf37 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 16 Nov 2017 20:43:38 +0000 Subject: [PATCH] Fix SQL query for REST DELETE route --- web/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes.go b/web/routes.go index 577e15a9..5b443231 100644 --- a/web/routes.go +++ b/web/routes.go @@ -229,7 +229,7 @@ func routes(s *fibre.Fibre) { s.Delete("/key/:class", func(c *fibre.Context) error { - txt := "DELETE FROM $class" + txt := "DELETE $class" res, err := db.Execute(c, txt, map[string]interface{}{ "class": sql.NewTable(c.Param("class")),