1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Null safety (#11007)

This commit is contained in:
melohagan 2023-06-23 14:48:07 +01:00 committed by GitHub
parent c642ceef37
commit 3aca0c0ed3

View file

@ -383,7 +383,7 @@ class MongoIntegration implements IntegrationBase {
createObjectIds(json: any): object {
const self = this
function interpolateObjectIds(json: any) {
for (let field of Object.keys(json)) {
for (let field of Object.keys(json || {})) {
if (json[field] instanceof Object) {
json[field] = self.createObjectIds(json[field])
}