mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
owner_get.go: fix incorrent owner session selection field
This commit is contained in:
@ -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
|
||||||
);
|
);
|
||||||
`
|
`
|
||||||
|
Reference in New Issue
Block a user