Skip to content

Commit 43d9355

Browse files
committed
Fix: error on decoding using a change stream cursor on a database
1 parent 3099975 commit 43d9355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/change_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (cs *changeStream) Decode(out interface{}) error {
451451
return err
452452
}
453453

454-
return bson.UnmarshalWithRegistry(cs.coll.registry, br, out)
454+
return bson.UnmarshalWithRegistry(cs.db.registry, br, out)
455455
}
456456

457457
func (cs *changeStream) DecodeBytes() (bson.Raw, error) {

0 commit comments

Comments
 (0)