@ccci/micro-server 1.0.69 → 1.0.71

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 +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113616,7 +113616,7 @@ class DatabaseConnector {
113616
113616
  });
113617
113617
  }
113618
113618
  console.log("Sync STARTED :>> ");
113619
- DatabaseConnector.connection.sync({ force: true });
113619
+ await DatabaseConnector.connection.sync({ force: true });
113620
113620
  let model = DatabaseConnector.connection.models["Chats"];
113621
113621
  model.sync({ force: true }).then((res) => {
113622
113622
  console.log("Sync Result:", res);
@@ -119176,6 +119176,7 @@ class ApplicationServer {
119176
119176
  ApplicationServer.app.use(import_express_fileupload.default());
119177
119177
  const db = new DatabaseConnector(process.cwd());
119178
119178
  const conn = await DatabaseConnector.init();
119179
+ await db.connect(conn[0]);
119179
119180
  await db.initializeModels();
119180
119181
  ApplicationServer.app.get("/", (req, resp) => {
119181
119182
  return resp.sendFile(path4.resolve("index.html"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",