v0.0.283
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m5s

This commit is contained in:
Mike Schwörer 2023-10-09 15:17:22 +02:00
parent 1e6b92d1d9
commit 796f7956b8
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.282" const GoextVersion = "0.0.283"
const GoextVersionTimestamp = "2023-10-09T09:23:40+0200" const GoextVersionTimestamp = "2023-10-09T15:17:22+0200"

View File

@ -3,6 +3,8 @@ package mongoext
import ( import (
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/bsoncodec" "go.mongodb.org/mongo-driver/bson/bsoncodec"
"go.mongodb.org/mongo-driver/bson/bsontype"
"go.mongodb.org/mongo-driver/bson/primitive"
"gogs.mikescher.com/BlackForestBytes/goext/rfctime" "gogs.mikescher.com/BlackForestBytes/goext/rfctime"
"reflect" "reflect"
) )
@ -24,5 +26,9 @@ func CreateGoExtBsonRegistry() *bsoncodec.Registry {
bson.PrimitiveCodecs{}.RegisterPrimitiveCodecs(rb) bson.PrimitiveCodecs{}.RegisterPrimitiveCodecs(rb)
// otherwise we get []primitve.E when unmarshalling into any
// which will result in {'key': .., 'value': ...}[] json when json-marshalling
rb.RegisterTypeMapEntry(bsontype.EmbeddedDocument, reflect.TypeOf(primitive.M{}))
return rb.Build() return rb.Build()
} }