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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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}`;
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
// Import user defined modules
|
// Import user defined modules
|
||||||
const MySQLDate = require('./MySQLDate');
|
const MySQLDate = require('./MySQLDate');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user