mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
core: filter connection plan query results by user_id (#3251)
This commit is contained in:
parent
c090b68bdd
commit
87d84cfccc
10 changed files with 62 additions and 20 deletions
|
@ -167,7 +167,7 @@ getContactByConnReqHash db user@User {userId} cReqHash =
|
|||
FROM contacts ct
|
||||
JOIN contact_profiles cp ON ct.contact_profile_id = cp.contact_profile_id
|
||||
JOIN connections c ON c.contact_id = ct.contact_id
|
||||
WHERE ct.user_id = ? AND c.via_contact_uri_hash = ? AND ct.contact_status = ? AND ct.deleted = 0
|
||||
WHERE c.user_id = ? AND c.via_contact_uri_hash = ? AND ct.contact_status = ? AND ct.deleted = 0
|
||||
ORDER BY c.created_at DESC
|
||||
LIMIT 1
|
||||
|]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue