diff --git a/delivery/controller/devices_controller.go b/delivery/controller/devices_controller.go index 72b0e68..93b75fb 100644 --- a/delivery/controller/devices_controller.go +++ b/delivery/controller/devices_controller.go @@ -89,7 +89,7 @@ func (dc *DeviceController) GetDeviceByID() gin.HandlerFunc { func (dc *DeviceController) UpdateDevice() gin.HandlerFunc { return func(c *gin.Context) { - id := c.Param("id") + id := c.Param("uuid") uuid, err := uuid.Parse(id) if err != nil { common.ErrorResponses(c, http.StatusBadRequest, err.Error())