mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(microservices): add optional chaining to app options - backward compat
This commit is contained in:
@@ -79,7 +79,7 @@ export class MicroservicesModule<
|
||||
if (!this.listenersController) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
if (this.appOptions.preview) {
|
||||
if (this.appOptions?.preview) {
|
||||
return;
|
||||
}
|
||||
const modules = container.getModules();
|
||||
|
||||
Reference in New Issue
Block a user