Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Commit 40e545e

Browse files
committed
fix: setup exists check
1 parent 517b860 commit 40e545e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/commands/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ async function askPlayerAccount (question, conn, serverConn, table) {
238238
const id = await askPlayer(question, serverConn, table)
239239

240240
const [ [ { exists } ] ] = await conn.execute(
241-
'SELECT player_id AS `exists` FROM bm_web_users WHERE player_id = ?'
241+
'SELECT COUNT(*) AS `exists` FROM bm_web_users WHERE player_id = ?'
242242
, [ id ])
243243

244244
if (exists) {

0 commit comments

Comments
 (0)