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

Lint cleanup

This commit is contained in:
2022-02-28 02:50:26 +00:00
parent cca155aa4a
commit 6ed7f09ce8
4 changed files with 6 additions and 4 deletions

View File

@@ -143,10 +143,10 @@ class User {
switch (range) {
case 'before':
sql += `and t.testDate <= curdate()`;
sql += 'and t.testDate <= curdate()';
break;
case 'after':
sql += `and t.testDate > curdate()`;
sql += 'and t.testDate > curdate()';
break;
}

View File

@@ -148,7 +148,7 @@ router.post('/password-reset', async (req, res) => {
const pr = await u.generatePasswordReset();
const URIToken = encodeURIComponent(pr.token);
const root = `https://stratos.heliumdev.uk`;
const root = 'https://stratos.heliumdev.uk';
const path = `/password-reset/${pr.userId}/${URIToken}`;
const url = `${root}${path}`;

View File

@@ -66,7 +66,7 @@ async function insertTestData() {
const sql = `
insert into ${table} ` +
`(${Object.keys(dataToInsert)})` +
` values ` +
' values ' +
`(${qs});`;
console.log(sql.trim());

View File

@@ -1,3 +1,5 @@
'use strict';
// Import user defined modules
const MySQLDate = require('./MySQLDate');