mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
Update application.ts (#4006)
The runAsCLI function's options argument is an optional argument. However, there were instances where it was being treated as a regular argument, which was causing errors. I have changed it to be nullable.
This commit is contained in:
parent
89ad13de29
commit
699fd52b8e
@ -731,7 +731,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
|
|||||||
if (this.activatedCommand) {
|
if (this.activatedCommand) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (options.reqId) {
|
if (options?.reqId) {
|
||||||
this.context.reqId = options.reqId;
|
this.context.reqId = options.reqId;
|
||||||
this._logger = this._logger.child({ reqId: this.context.reqId });
|
this._logger = this._logger.child({ reqId: this.context.reqId });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user