@ccci/micro-server 1.0.64 → 1.0.66

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 +5 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113613,6 +113613,11 @@ class DatabaseConnector {
113613
113613
  }
113614
113614
  });
113615
113615
  }
113616
+ DatabaseConnector.connection.models["Chats"].sync({ force: true }).then((res) => {
113617
+ console.log("Sync Result:", res);
113618
+ }).catch((err) => {
113619
+ console.log("Sync Error:", err);
113620
+ });
113616
113621
  }
113617
113622
  getConnections() {
113618
113623
  return DatabaseConnector.connections.length > 0 ? DatabaseConnector.connections : [DatabaseConnector.connection];
@@ -119179,12 +119184,6 @@ class ApplicationServer {
119179
119184
  const mailer = Mailer.getInstance();
119180
119185
  mailer.connect(options);
119181
119186
  }
119182
- if (sync) {
119183
- sync.forEach(async (model) => {
119184
- await DatabaseConnector.sync(model, true);
119185
- await DatabaseConnector.getModel(model).sync({ force: true });
119186
- });
119187
- }
119188
119187
  });
119189
119188
  }
119190
119189
  getInstance() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",