vona-module-a-executor 5.0.24 → 5.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -132,6 +132,9 @@ let BeanExecutor = (_dec$2 = Bean(), _dec2$2 = BeanInfo({
|
|
|
132
132
|
// instance
|
|
133
133
|
const instanceName = this.ctx.instanceName; // use default instanceName when undefined
|
|
134
134
|
if (instanceName !== undefined && instanceName !== null) {
|
|
135
|
+
if (!this.app.meta.appReady) {
|
|
136
|
+
throw new Error(`should not init ctx.instance: ${instanceName}, when app.meta.appReady not true`);
|
|
137
|
+
}
|
|
135
138
|
this.ctx.instance = await this.bean.instance.get(instanceName);
|
|
136
139
|
// start instance
|
|
137
140
|
if (options?.instance) {
|