offline fix

This commit is contained in:
smsteel 2019-02-10 19:13:28 +03:00
parent d5a07966e8
commit bf198e16f6

View File

@ -114,7 +114,7 @@ export const setOnlineState = displayName => run(
[ displayName ]
)
export const setOfflineState = displayName => run(
`INSERT OR REPLACE INTO playerData (displayName, online) VALUES (?, ?, 0)`,
`INSERT OR REPLACE INTO playerData (displayName, online) VALUES (?, 0)`,
[ displayName ]
)
export const getPlayersData = () => all('SELECT * FROM playerData ORDER BY online DESC, displayName ASC')