chore: re-arrange

This commit is contained in:
amhsirak
2025-01-22 19:01:00 +05:30
parent 75d65578cd
commit 76ab46fc87

View File

@@ -30,7 +30,8 @@ export const syncDB = async () => {
try {
//setupAssociations();
const isDevelopment = process.env.NODE_ENV === 'development';
await sequelize.sync({ force: false, alter: true }); // force: true will drop and recreate tables on every run
// force: true will drop and recreate tables on every run
await sequelize.sync({ force: false, alter: true });
console.log('Database synced successfully!');
} catch (error) {
console.error('Failed to sync database:', error);