Skip to content
Browse files

[fix] runtime, database, compiler: Use Opaserialize intead of magic t…

…o string
  • Loading branch information...
1 parent 61682da commit 6f52a2d37edec4118451ba45eb99a2c7400bfac0 @BourgerieQuentin BourgerieQuentin committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 stdlib/apis/mongo/bson.opa
View
2 stdlib/apis/mongo/bson.opa
@@ -696,7 +696,7 @@ Bson = {{
map_to_bson(key:string, v:'a, kty:OpaType.ty, dty:OpaType.ty): Bson.document =
doc = List.flatten(Map.fold((k, v, acc ->
- k = OpaValue.to_string_with_type(kty, k)
+ k = OpaSerialize.serialize_with_type(kty, k)
k = %%BslMongo.Mongo.encode_field%%(k)
(doc = opa_to_document(k, v, dty)
((doc +> acc):list(Bson.document)))), @unsafe_cast(v), []))

0 comments on commit 6f52a2d

Please sign in to comment.
Something went wrong with that request. Please try again.