mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
I hate SQL
This commit is contained in:
@@ -1408,7 +1408,7 @@ pub(crate) async fn ndn_from_ext(
|
|||||||
"SELECT",
|
"SELECT",
|
||||||
" m.id AS msg_id,",
|
" m.id AS msg_id,",
|
||||||
" c.id AS chat_id,",
|
" c.id AS chat_id,",
|
||||||
" c.type AS type,",
|
" c.type AS type",
|
||||||
" FROM msgs m LEFT JOIN chats c ON m.chat_id=c.id",
|
" FROM msgs m LEFT JOIN chats c ON m.chat_id=c.id",
|
||||||
" WHERE rfc724_mid=? AND from_id=1",
|
" WHERE rfc724_mid=? AND from_id=1",
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user