@ccci/micro-server 1.0.67 → 1.0.69
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
|
@@ -113615,12 +113615,15 @@ class DatabaseConnector {
|
|
|
113615
113615
|
}
|
|
113616
113616
|
});
|
|
113617
113617
|
}
|
|
113618
|
+
console.log("Sync STARTED :>> ");
|
|
113619
|
+
DatabaseConnector.connection.sync({ force: true });
|
|
113618
113620
|
let model = DatabaseConnector.connection.models["Chats"];
|
|
113619
113621
|
model.sync({ force: true }).then((res) => {
|
|
113620
113622
|
console.log("Sync Result:", res);
|
|
113621
113623
|
}).catch((err) => {
|
|
113622
113624
|
console.log("Sync Error:", err);
|
|
113623
113625
|
});
|
|
113626
|
+
console.log("Sync ENDED :>> ");
|
|
113624
113627
|
} catch (error) {
|
|
113625
113628
|
console.log(error);
|
|
113626
113629
|
}
|