Null safety (#11007)

This commit is contained in:
melohagan 2023-06-23 14:48:07 +01:00 committed by GitHub
parent c642ceef37
commit 3aca0c0ed3
1 changed files with 1 additions and 1 deletions

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])
}