From 7b21ee39541edce4b117df39fc8a761b8f8ff917 Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Thu, 20 Feb 2025 09:29:05 +0700 Subject: [PATCH] fixed id on devices --- delivery/controller/devices_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())