From f3692a5ec9066869627c8fa24997099f94f44dc5 Mon Sep 17 00:00:00 2001 From: Leonardo Christino <leomilho@gmail.com> Date: Wed, 12 Jul 2023 19:25:32 +0200 Subject: [PATCH] fix unmarshaler --- unmarshalJSON.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unmarshalJSON.go b/unmarshalJSON.go index d8802fa..1af792b 100644 --- a/unmarshalJSON.go +++ b/unmarshalJSON.go @@ -8,7 +8,7 @@ package query import ( "encoding/json" - "git.science.uu.nl/graphpolaris/query-conversion/entity" + "git.science.uu.nl/graphpolaris/query-conversion/entityv2" ) /* @@ -16,8 +16,8 @@ UnmarshalJSON takes an incoming message and unmarshals it msg: *[]byte, the incoming message Returns: *entity.IncomingQueryJSON, the unmarshalled message and a possible error */ -func UnmarshalJSON(msg *[]byte) (*entity.IncomingQueryJSON, error) { - var JSONQuery entity.IncomingQueryJSON +func UnmarshalJSON(msg *[]byte) (*entityv2.IncomingQueryJSON, error) { + var JSONQuery entityv2.IncomingQueryJSON err := json.Unmarshal(*msg, &JSONQuery) return &JSONQuery, err } -- GitLab