aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeiser <keiserwiliem@googlemail.com>2016-11-04 17:11:16 (UTC)
committerkeiser <keiserwiliem@googlemail.com>2016-11-04 17:11:16 (UTC)
commitbd8b61a5167132754b944a653260ddd71ff79a60 (patch)
tree4052f1e58e7de1f7cb30ffa367adbf8e79f27500
parent80c8317be585db003502e1d05c49d226c80c7416 (diff)
yay
-rw-r--r--modules/lists/lists.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/lists/lists.go b/modules/lists/lists.go
index 4152342..c699271 100644
--- a/modules/lists/lists.go
+++ b/modules/lists/lists.go
@@ -701,12 +701,6 @@ func (m *Module) removeGrilFromList(w http.ResponseWriter, r *http.Request, p ht
701 http.Error(w, "could not remove gril", 500) 701 http.Error(w, "could not remove gril", 500)
702 return 702 return
703 } 703 }
704
705 if r, err := res.RowsAffected(); err != nil || r == 0 {
706 log.Println("invalid rows affected in removing gril")
707 http.Error(w, "gril not in list / other error", 500)
708 return
709 }
710 704
711 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_gril SET "order" = "order" - 1 WHERE list_id = $1 AND "order" > $2`, listID, oldOrder)
712 if err != nil { 706 if err != nil {