chore: lint
This commit is contained in:
@@ -25,12 +25,12 @@ export const connectDB = async () => {
|
|||||||
|
|
||||||
export const syncDB = async () => {
|
export const syncDB = async () => {
|
||||||
try {
|
try {
|
||||||
await sequelize.sync({ force: false }); // force: true will drop and recreate tables on every run
|
await sequelize.sync({ force: false }); // force: true will drop and recreate tables on every run
|
||||||
console.log('Database synced successfully!');
|
console.log('Database synced successfully!');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to sync database:', error);
|
console.error('Failed to sync database:', error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export default sequelize;
|
export default sequelize;
|
||||||
Reference in New Issue
Block a user