fixed id on devices
This commit is contained in:
parent
41b8d59749
commit
7b21ee3954
|
|
@ -89,7 +89,7 @@ func (dc *DeviceController) GetDeviceByID() gin.HandlerFunc {
|
||||||
|
|
||||||
func (dc *DeviceController) UpdateDevice() gin.HandlerFunc {
|
func (dc *DeviceController) UpdateDevice() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
id := c.Param("id")
|
id := c.Param("uuid")
|
||||||
uuid, err := uuid.Parse(id)
|
uuid, err := uuid.Parse(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
common.ErrorResponses(c, http.StatusBadRequest, err.Error())
|
common.ErrorResponses(c, http.StatusBadRequest, err.Error())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue