fix(microservices): add optional chaining to app options - backward compat

This commit is contained in:
Kamil Myśliwiec
2023-02-03 11:32:17 +01:00
parent 7b7b8b9260
commit 0e3f9bd527

View File

@@ -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();