Fix SQL query for REST DELETE route

This commit is contained in:
Tobie Morgan Hitchcock 2017-11-16 20:43:38 +00:00
parent 28c10c9747
commit 878ddbbf09

View file

@ -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")),