diff --git a/controllers/contracts_controller.go b/controllers/contracts_controller.go index 7ba4091..9faddf0 100644 --- a/controllers/contracts_controller.go +++ b/controllers/contracts_controller.go @@ -20,7 +20,7 @@ func GetLatestContracts(c *gin.Context) { // Optional search parameters companyName := c.Query("company_name") startTimeStr := c.Query("start_time") - deviceIDsStr := c.QueryArray("device_ids[]") // Assuming deviceIDs are passed as an array query parameter + deviceIDsStr := c.QueryArray("deviceIDs[]") // Assuming deviceIDs are passed as an array query parameter // Convert limit and offset to int limit, err := strconv.Atoi(limitStr)