diff --git a/public/assets/css/responsive.css b/public/assets/css/responsive.css index 0284012..10bd320 100644 --- a/public/assets/css/responsive.css +++ b/public/assets/css/responsive.css @@ -8,6 +8,10 @@ justify-content: center; text-align: center; } + + #profileView .matchList .match { + height: 7rem; + } } @media only screen and (max-width: 820px) { @@ -31,10 +35,6 @@ width: 90vw; } - #profileView .matchList .match { - height: 7rem; - } - #profileView .match div { flex-direction: column; } diff --git a/utils/auth.js b/utils/auth.js index 87bf844..567a793 100644 --- a/utils/auth.js +++ b/utils/auth.js @@ -198,7 +198,7 @@ export class MailAuth { const conn = mysql.createConnection(this.mysqlOptions); conn.query(`INSERT INTO matches(match_id, match_type, host_id, guest_id, duration) VALUES (${conn.escape(matchId)}, ${conn.escape(type)}, ${conn.escape(hostId)}, ${conn.escape(guestId)}, ${conn.escape(duration)})`, async (error) => { if (error) reject(error); - else conn.query(`INSERT INTO statistics(match_id, user_id, board, won) VALUES (${conn.escape(matchId)}, ${conn.escape(hostId)}, ${conn.escape(JSON.stringify(boards[0]))}, ${conn.escape(winnerIdx ? 0 : 1)}), (${conn.escape(matchId)}, ${conn.escape(guestId)}, ${conn.escape(JSON.stringify(boards[1]))}, ${conn.escape(winnerIdx ? 1 : 0)})`, async (error, response) => { + else conn.query(`INSERT INTO statistics(match_id, user_id, board, won) VALUES (${conn.escape(matchId)}, ${conn.escape(hostId)}, ${conn.escape(JSON.stringify(boards[0]))}, ${conn.escape(winnerIdx ? 1 : 0)}), (${conn.escape(matchId)}, ${conn.escape(guestId)}, ${conn.escape(JSON.stringify(boards[1]))}, ${conn.escape(winnerIdx ? 0 : 1)})`, async (error, response) => { if (error) reject(error); else resolve(); });