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 := `
|
statement := `
|
||||||
SELECT ownerHex, email, name, confirmedEmail, joinDate
|
SELECT ownerHex, email, name, confirmedEmail, joinDate
|
||||||
FROM owners
|
FROM owners
|
||||||
WHERE email IN (
|
WHERE ownerHex IN (
|
||||||
SELECT email FROM ownerSessions
|
SELECT ownerHex FROM ownerSessions
|
||||||
WHERE ownerToken = $1
|
WHERE ownerToken = $1
|
||||||
);
|
);
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user