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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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}`;
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ async function insertTestData() {
|
||||
const sql = `
|
||||
insert into ${table} ` +
|
||||
`(${Object.keys(dataToInsert)})` +
|
||||
` values ` +
|
||||
' values ' +
|
||||
`(${qs});`;
|
||||
|
||||
console.log(sql.trim());
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
// Import user defined modules
|
||||
const MySQLDate = require('./MySQLDate');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user