owner_get.go: fix incorrent owner session selection field
This commit is contained in:
parent
0c6ccdc0a1
commit
af88db42b2
@ -31,8 +31,8 @@ func ownerGetByOwnerToken(ownerToken string) (owner, error) {
|
||||
statement := `
|
||||
SELECT ownerHex, email, name, confirmedEmail, joinDate
|
||||
FROM owners
|
||||
WHERE email IN (
|
||||
SELECT email FROM ownerSessions
|
||||
WHERE ownerHex IN (
|
||||
SELECT ownerHex FROM ownerSessions
|
||||
WHERE ownerToken = $1
|
||||
);
|
||||
`
|
||||
|
Loading…
Reference in New Issue
Block a user