fix undefined

This commit is contained in:
Arjun Patel
2019-02-23 19:22:09 -08:00
parent 7634a66a18
commit c755be7f19
+1 -1
View File
@@ -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} }`);
});