mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:25:52 +00: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) {
|
||||
return;
|
||||
}
|
||||
if (options.reqId) {
|
||||
if (options?.reqId) {
|
||||
this.context.reqId = options.reqId;
|
||||
this._logger = this._logger.child({ reqId: this.context.reqId });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user