Skip to content

Commit 654344c

Browse files
committed
fix: tools
1 parent 8d0c91d commit 654344c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/APIClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ObjectId from "bson-objectid";
88
superjson.registerCustom<ObjectId, string>(
99
{
1010
isApplicable: (value): value is ObjectId => {
11-
if (ObjectId.isValid(value)) {
11+
if (typeof value !== "string" && ObjectId.isValid(value)) {
1212
const str = value.toString();
1313
return /^[0-9a-fA-F]{24}$/.test(str);
1414
}

0 commit comments

Comments
 (0)