Skip to content

Commit

Permalink
fix(query-parser): use correct base in BinData serialization (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtritto authored Jun 18, 2024
1 parent 143a617 commit bd49f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-parser/src/stringify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const BSON_TO_JS_STRING = {
}
// The `Binary.buffer.toString` type says it doesn't accept
// arguments. However it does, and a test will fail without it.
return `BinData(${subType.toString(16)}, '${v.toString('base64')}')`;
return `BinData(${subType.toString(10)}, '${v.toString('base64')}')`;
},
DBRef: function (v: DBRef) {
if (v.db) {
Expand Down

0 comments on commit bd49f67

Please sign in to comment.