chore: Upgrade pg and sequelize to support node 14+ (#1462)
* Upgrade pg and sequelize to support node 14+ When Node 14 came out the app was incompatible, we should always have a maximum version defined here until the server code has been tested to prove compatibility Co-authored-by: Lance Whatley <whatl3y@gmail.com>
This commit is contained in:
@ -6,7 +6,9 @@ export function flushdb() {
|
||||
const sql = sequelize.getQueryInterface();
|
||||
const tables = Object.keys(sequelize.models).map((model) => {
|
||||
const n = sequelize.models[model].getTableName();
|
||||
return sql.quoteTable(typeof n === "string" ? n : n.tableName);
|
||||
return sql.queryGenerator.quoteTable(
|
||||
typeof n === "string" ? n : n.tableName
|
||||
);
|
||||
});
|
||||
|
||||
const query = `TRUNCATE ${tables.join(", ")} CASCADE`;
|
||||
|
Reference in New Issue
Block a user