From 0ad2741884d3f605997e27d991dda6b12a21aec0 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 25 Feb 2022 16:46:41 +0000 Subject: [PATCH] Changed a test date to fall on today and fixed bug caused by sql styling --- utility/db/dbTestData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utility/db/dbTestData.js b/utility/db/dbTestData.js index f0102d1..8b48269 100644 --- a/utility/db/dbTestData.js +++ b/utility/db/dbTestData.js @@ -226,7 +226,7 @@ const data = { ], test: [ { - testDate: new mySQLDate().alterDays(-1), + testDate: new mySQLDate(), lookups: { classId: 1, testTemplateId: 1 @@ -555,7 +555,7 @@ async function insertData(dbOptions) { ` values ` + `(${qs});`; - console.log(sql); + console.log(sql.trim()); try { await dbConnectionPool.runQuery(sql,