Null safety (#11007)
This commit is contained in:
parent
c642ceef37
commit
3aca0c0ed3
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue