From 3f6a0cd14bd48311fe36e75da334b43302163a07 Mon Sep 17 00:00:00 2001 From: Manuel Imperiale Date: Tue, 4 Feb 2020 12:33:28 +0100 Subject: [PATCH] NOISSUE - Fix metadata in add Things endpoint (#1028) Signed-off-by: Manuel Imperiale --- things/api/things/http/endpoint.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/things/api/things/http/endpoint.go b/things/api/things/http/endpoint.go index c5b430a7..d97a00d3 100644 --- a/things/api/things/http/endpoint.go +++ b/things/api/things/http/endpoint.go @@ -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) }