fix
This commit is contained in:
1 parent
a7e53ca0a3
commit
2a2b01bf59
10 files changed
+9
-52
No files matched your search
@@ -19,7 +19,7 @@ type UserSessionState struct {
|
||||
func (s *Service) UserSessionState(ctx context.Context, userID uuid.UUID) (UserSessionState, error) {
|
||||
var st UserSessionState
|
||||
err := s.Pool.QueryRow(ctx, `
|
||||
SELECT is_active, session_version
|
||||
SELECT COALESCE(is_active, false), COALESCE(session_version, 0)
|
||||
FROM users
|
||||
WHERE id = $1`, userID).Scan(&st.Active, &st.Version)
|
||||
if isUndefinedColumn(err) {
|
||||
|
||||
Reference in new issue
Block a user