瀏覽代碼

Fix incorrect param read bug in list deletion handler

Kailash Nadh 5 年之前
父節點
當前提交
bfe31b75c1
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      lists.go

+ 0 - 5
lists.go

@@ -151,11 +151,6 @@ func handleDeleteLists(c echo.Context) error {
 		ids   pq.Int64Array
 	)
 
-	// Read the list IDs if they were sent in the body.
-	if err := c.Bind(&ids); err != nil {
-		return err
-	}
-
 	if id < 1 && len(ids) == 0 {
 		return echo.NewHTTPError(http.StatusBadRequest, "Invalid ID.")
 	}