fixed id on devices

This commit is contained in:
areeqakbr 2025-02-20 09:29:05 +07:00
parent 41b8d59749
commit 7b21ee3954
1 changed files with 1 additions and 1 deletions

View File

@ -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())