better error handling

This commit is contained in:
Aster Fialla
2026-02-14 12:55:36 -05:00
committed by pieartsy
parent 8b3be16cea
commit a92f00e545
4 changed files with 67 additions and 63 deletions

View File

@@ -48,7 +48,7 @@ database.check_connection = async function() {
}
async function syncModels() {
await sequelize.sync().then((result) => {
await sequelize.sync().then(() => {
console.log('Models synced successfully.');
}).catch((err) => {
console.error('Syncing models did not work', err);