mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00
NOISSUE - Fix metadata in add Things endpoint (#1028)
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
This commit is contained in:
parent
269fe89a42
commit
3f6a0cd14b
@ -48,8 +48,9 @@ func createThingsEndpoint(svc things.Service) endpoint.Endpoint {
|
||||
ths := []things.Thing{}
|
||||
for _, tReq := range req.Things {
|
||||
th := things.Thing{
|
||||
Name: tReq.Name,
|
||||
Key: tReq.Key,
|
||||
Name: tReq.Name,
|
||||
Key: tReq.Key,
|
||||
Metadata: tReq.Metadata,
|
||||
}
|
||||
ths = append(ths, th)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user