From d7ed1196bdd44d7734d41d91a5e72a71785e0a08 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 5 Jan 2023 02:09:07 +0100 Subject: switched to single quotes string in eslint --- database/games.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'database/games.js') diff --git a/database/games.js b/database/games.js index 3517d0a..ac9a4ad 100644 --- a/database/games.js +++ b/database/games.js @@ -1,8 +1,8 @@ -import db from "./db.js"; +import db from './db.js'; -const getGameStatement = db.prepare("SELECT * from games where id = ?;"); -const listGamesStatement = db.prepare("SELECT * from games where player1 = ?1 OR player2 = ?1 ORDER BY last_move_at;"); -const newGameStatement = db.prepare("INSERT INTO games (player1, player2, data) VALUES (?, ?, ?);"); +const getGameStatement = db.prepare('SELECT * from games where id = ?;'); +const listGamesStatement = db.prepare('SELECT * from games where player1 = ?1 OR player2 = ?1 ORDER BY last_move_at;'); +const newGameStatement = db.prepare('INSERT INTO games (player1, player2, data) VALUES (?, ?, ?);'); export function getGame(id) { try { -- cgit v1.2.3