another test flat in base

This commit is contained in:
mr 2024-07-22 13:26:59 +02:00
parent b1293af229
commit f7dfbe91dd

View File

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