1
0
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:
Manuel Imperiale 2020-02-04 12:33:28 +01:00 committed by GitHub
parent 269fe89a42
commit 3f6a0cd14b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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