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)