Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Jan 10, 2022
1 parent 2aef5e5 commit cb7ce80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions fddrace-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dotenv.config()
const { sendMailPassword, sendMailVerify } = require('./src/mail')
const { loginAccount, getAccsByEmail } = require('./src/account')
const { execCmd } = require('./src/api')
const { hasVoted, insertSurvey, getDb } = require('./src/survey')
const { insertSurvey, getDb } = require('./src/survey')

const port = 5690

Expand Down Expand Up @@ -148,7 +148,7 @@ app.post('/account', (req, res) => {
}
}
if (req.body.pin !== req.session.data.security_pin) {
redisClient.set(sanitizeGmail(email), JSON.stringify({pinAttempts: 0}), (err, reply) => {
redisClient.set(sanitizeGmail(email), JSON.stringify({ pinAttempts: 0 }), (err, reply) => {
if (err) throw err

console.log(`[email-update] email='${email}' pin attempts=0 redis response: ${reply}`)
Expand Down Expand Up @@ -369,8 +369,7 @@ app.post('/survey', async (req, res) => {
}
if (rows) {
res.end('<html>You already voted <a href="survey">back</a></html>')
}
else {
} else {
insertSurvey(
req.session.data.username,
[req.body.question1, req.body.question2]
Expand Down
2 changes: 0 additions & 2 deletions src/survey.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { Database } = require('sqlite3')

const sqlite3 = require('sqlite3').verbose()
const db = new sqlite3.Database('./db/survey.db')

Expand Down
2 changes: 2 additions & 0 deletions static/players.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global fetch:false */

const fillComplete = (players, completeList, input, completeIdentifier) => {
if (!completeList) {
return
Expand Down

0 comments on commit cb7ce80

Please sign in to comment.