Skip to content

Commit 68f882a

Browse files
committed
Revert "fix: correct JSON format for decimal number inside object in mongo"
This reverts commit 4ac2967.
1 parent 4ac2967 commit 68f882a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

adminforth/dataConnectors/mongo.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,6 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
213213
return null;
214214
}
215215
return value?.toString();
216-
} else if (field.type == AdminForthDataTypes.JSON) {
217-
if (JSON.stringify(value).includes('$numberDecimal')) {
218-
const json = JSON.stringify(value, (key, value) => {
219-
if (value && typeof value === 'object' && '$numberDecimal' in value) {
220-
return value.$numberDecimal;
221-
}
222-
return value;
223-
});
224-
return JSON.parse(json);
225-
}
226-
return value;
227216
}
228217

229218
return value;

0 commit comments

Comments
 (0)