Skip to content

Commit 1ba495b

Browse files
committed
fix: avoid TypeScript error by casting value to any before checking _bsontype
1 parent 2c3c930 commit 1ba495b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/dataConnectors/mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
9797
if (
9898
value &&
9999
typeof value === 'object' &&
100-
('$numberDecimal' in value || value._bsontype === 'Decimal128')
100+
('$numberDecimal' in value || (value as any)._bsontype === 'Decimal128')
101101
) {
102102
addType(fullKey, 'decimal');
103103
return;

0 commit comments

Comments
 (0)