1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-02 03:59:29 +00:00

Changed a test date to fall on today and fixed bug caused by sql styling

This commit is contained in:
2022-02-25 16:46:41 +00:00
parent 32c83cd308
commit 0ad2741884

View File

@@ -226,7 +226,7 @@ const data = {
], ],
test: [ test: [
{ {
testDate: new mySQLDate().alterDays(-1), testDate: new mySQLDate(),
lookups: { lookups: {
classId: 1, classId: 1,
testTemplateId: 1 testTemplateId: 1
@@ -555,7 +555,7 @@ async function insertData(dbOptions) {
` values ` + ` values ` +
`(${qs});`; `(${qs});`;
console.log(sql); console.log(sql.trim());
try { try {
await dbConnectionPool.runQuery(sql, await dbConnectionPool.runQuery(sql,