Skip to content

Commit 5d7e241

b3cdb05 commit 5d7e241

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

snippets/uuidhelpers/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ BinData.prototype.toHexUUID = function () {
138138
}
139139

140140
/ for compatibility with the new mongosh shell
141-
if (BinData.prototype.base64 === undefined && BinData.prototype.subtype === undefined) {
141+
if (BinData.prototype.base64 === undefined) {
142142
BinData.prototype.base64 = function() { return this.buffer.base64Slice(); };
143+
}
144+
if (BinData.prototype.subtype === undefined) {
143145
BinData.prototype.subtype = function() { return this.sub_type; };
144146
}
145147

0 commit comments

Comments
 (0)

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant