fix undefined
This commit is contained in:
@@ -37,7 +37,7 @@ db.sequelize
|
||||
});
|
||||
|
||||
//force: true will drop the table if it already exists
|
||||
const drop_tables = process.env.DROP_TABLES;
|
||||
const drop_tables = process.env.DROP_TABLES || false;
|
||||
db.sequelize.sync({ force: drop_tables }).then(() => {
|
||||
console.log(`Drop and Resync with { force: ${drop_tables} }`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user