From d103585aba743351b1ee031cd12206581ec1b401 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Thu, 13 Jan 2022 01:42:41 +1100 Subject: [PATCH] fix(storage): use boolean instead of integer (#2776) This fixes an issue where an integer is used instead of a boolean. --- internal/storage/sql_provider_queries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/storage/sql_provider_queries.go b/internal/storage/sql_provider_queries.go index 8da7c1329..8db6417f5 100644 --- a/internal/storage/sql_provider_queries.go +++ b/internal/storage/sql_provider_queries.go @@ -174,7 +174,7 @@ const ( queryFmtSelect1FAAuthenticationLogEntryByUsername = ` SELECT time, successful, username 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 LIMIT ? OFFSET ?;`