Fix incorrect param read bug in list deletion handler

This commit is contained in:
Kailash Nadh 2020-05-23 12:03:04 +05:30
parent 3dcff5dbca
commit bfe31b75c1
1 changed files with 0 additions and 5 deletions

View File

@ -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.")
}