From f7dfbe91dd2aa410776056daf264803f085e4cba Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 22 Jul 2024 13:26:59 +0200 Subject: [PATCH] another test flat in base --- dbs/mongo/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbs/mongo/mongo.go b/dbs/mongo/mongo.go index 32a0523..c4d16ff 100644 --- a/dbs/mongo/mongo.go +++ b/dbs/mongo/mongo.go @@ -168,7 +168,7 @@ func (m *MongoDB) StoreOne(obj interface{}, collection_name string) (string, int m.Logger.Error().Msg("Couldn't insert resource: " + err.Error()) return "", 422, err } - bson.Unmarshal(b, &doc) + bson.UnmarshalExtJSON(b, false, &doc) targetDBCollection := CollectionMap[collection_name] MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second)