1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:19:26 +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) { switch (range) {
case 'before': case 'before':
sql += `and t.testDate <= curdate()`; sql += 'and t.testDate <= curdate()';
break; break;
case 'after': case 'after':
sql += `and t.testDate > curdate()`; sql += 'and t.testDate > curdate()';
break; break;
} }

View File

@@ -148,7 +148,7 @@ router.post('/password-reset', async (req, res) => {
const pr = await u.generatePasswordReset(); const pr = await u.generatePasswordReset();
const URIToken = encodeURIComponent(pr.token); 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 path = `/password-reset/${pr.userId}/${URIToken}`;
const url = `${root}${path}`; const url = `${root}${path}`;

View File

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

View File

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