aboutsummaryrefslogtreecommitdiff
path: root/modules/lists
diff options
context:
space:
mode:
authorkeiser <keiserwiliem@googlemail.com>2016-11-04 17:17:27 (UTC)
committerkeiser <keiserwiliem@googlemail.com>2016-11-04 17:17:27 (UTC)
commitfdf858e0eabd107e2815b0e562e06f55f93a2d3b (patch)
tree8ddc1bfbcd4908c0ee024da52fd9462e7ab946a8 /modules/lists
parent1a3ddb12843eaacca2a6109333331f92eee2603c (diff)
kek
Diffstat (limited to 'modules/lists')
-rw-r--r--modules/lists/lists.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lists/lists.go b/modules/lists/lists.go
index 455c39c..b346dd5 100644
--- a/modules/lists/lists.go
+++ b/modules/lists/lists.go
@@ -702,7 +702,7 @@ func (m *Module) removeGrilFromList(w http.ResponseWriter, r *http.Request, p ht
702 return 702 return
703 } 703 }
704 704
705 res, err := m.g.DB.Exec(`UPDATE grilist.lists_gril SET "order" = "order" - 1 WHERE list_id = $1 AND "order" > $2`, listID, oldOrder) 705 res, err := m.g.DB.Exec(`UPDATE grilist.lists_grils SET "order" = "order" - 1 WHERE list_id = $1 AND "order" > $2`, listID, oldOrder)
706 if err != nil { 706 if err != nil {
707 log.Println("error removing gril:", err) 707 log.Println("error removing gril:", err)
708 http.Error(w, "could not remove gril", 500) 708 http.Error(w, "could not remove gril", 500)