@ccci/micro-server 1.0.77 → 1.0.78

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -119191,12 +119191,12 @@ class ApplicationServer {
119191
119191
  mailer.connect(options);
119192
119192
  }
119193
119193
  if (sync) {
119194
- if (sync instanceof Boolean) {
119195
- await DatabaseConnector.syncAll(true);
119196
- } else {
119194
+ if (Array.isArray(sync)) {
119197
119195
  sync.forEach(async (model) => {
119198
119196
  await DatabaseConnector.sync(model, true);
119199
119197
  });
119198
+ } else {
119199
+ await DatabaseConnector.syncAll(true);
119200
119200
  }
119201
119201
  }
119202
119202
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",