We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35bb2a2 commit 67fbc7cCopy full SHA for 67fbc7c
src/objectid.ts
@@ -84,7 +84,7 @@ export class ObjectId {
84
this[kId] = Buffer.from(workingId, 'hex');
85
} else {
86
throw new BSONTypeError(
87
- 'Argument passed in must be a string of 12 bytes or a string of 24 hex characters'
+ 'Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer'
88
);
89
}
90
0 commit comments