Fix SQL query for REST DELETE route
This commit is contained in:
parent
28c10c9747
commit
878ddbbf09
1 changed files with 1 additions and 1 deletions
|
@ -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")),
|
||||
|
|
Loading…
Reference in a new issue