vona-module-a-startup 5.0.16 → 5.0.17

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ let ServiceStartup = (_dec$3 = Service(), _dec2$3 = BeanInfo({
57
57
  for (const instance of instances) {
58
58
  const instanceName = instance.name;
59
59
  // need not await
60
- this.bean.executor.newCtx(async () => {
60
+ const res = this.bean.executor.newCtx(async () => {
61
61
  await this.$scope.instance.service.instance.instanceStartup(instanceName, {
62
62
  force: false
63
63
  });
@@ -67,6 +67,9 @@ let ServiceStartup = (_dec$3 = Service(), _dec2$3 = BeanInfo({
67
67
  },
68
68
  instanceName
69
69
  });
70
+ if (this.app.config.server.listen.disable) {
71
+ await res;
72
+ }
70
73
  }
71
74
  }
72
75
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-startup",
3
3
  "type": "module",
4
- "version": "5.0.16",
4
+ "version": "5.0.17",
5
5
  "title": "a-startup",
6
6
  "vonaModule": {
7
7
  "dependencies": {},