aboutsummaryrefslogtreecommitdiff
path: root/modules/lists
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lists')
-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 {