fix(storage): use boolean instead of integer (#2776)

This fixes an issue where an integer is used instead of a boolean.
pull/2691/head
James Elliott 2022-01-13 01:42:41 +11:00 committed by GitHub
parent 03caebaad0
commit d103585aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ const (
queryFmtSelect1FAAuthenticationLogEntryByUsername = ` queryFmtSelect1FAAuthenticationLogEntryByUsername = `
SELECT time, successful, username SELECT time, successful, username
FROM %s FROM %s
WHERE time > ? AND username = ? AND auth_type = '1FA' AND banned = 0 WHERE time > ? AND username = ? AND auth_type = '1FA' AND banned = FALSE
ORDER BY time DESC ORDER BY time DESC
LIMIT ? LIMIT ?
OFFSET ?;` OFFSET ?;`