mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 08:55:31 +01:00
fix ambiguous mail query
This commit is contained in:
@@ -145,7 +145,7 @@ func GetMailListForCharacter(s *Session, charID uint32) ([]Mail, error) {
|
|||||||
c.name as sender_name
|
c.name as sender_name
|
||||||
FROM mail m
|
FROM mail m
|
||||||
JOIN characters c ON c.id = m.sender_id
|
JOIN characters c ON c.id = m.sender_id
|
||||||
WHERE recipient_id = $1 AND deleted = false
|
WHERE recipient_id = $1 AND m.deleted = false
|
||||||
ORDER BY m.created_at DESC, id DESC
|
ORDER BY m.created_at DESC, id DESC
|
||||||
LIMIT 32
|
LIMIT 32
|
||||||
`, charID)
|
`, charID)
|
||||||
|
|||||||
Reference in New Issue
Block a user