mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 15:59:25 +00:00
Add sessions table to cleanDb in test data
This commit is contained in:
@@ -485,7 +485,10 @@ const data = {
|
||||
async function cleanDb(dbConnectionPool) {
|
||||
// Remove records from tables in reverse order to which they depend on
|
||||
// each other
|
||||
for (const table of Object.keys(data).reverse())
|
||||
const tables = Object.keys(data).reverse();
|
||||
tables.push('sessions');
|
||||
|
||||
for (const table of tables)
|
||||
await dbConnectionPool.runQuery(`DELETE FROM ${table};`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user