diff --git a/packages/core/server/src/application.ts b/packages/core/server/src/application.ts index c9a2a27940..df186ad7d3 100644 --- a/packages/core/server/src/application.ts +++ b/packages/core/server/src/application.ts @@ -731,7 +731,7 @@ export class Application exten if (this.activatedCommand) { return; } - if (options.reqId) { + if (options?.reqId) { this.context.reqId = options.reqId; this._logger = this._logger.child({ reqId: this.context.reqId }); }