I hate SQL

This commit is contained in:
Hocuri
2020-06-10 11:59:06 +02:00
parent e7aee5b4f4
commit 3899d70b3c

View File

@@ -1408,7 +1408,7 @@ pub(crate) async fn ndn_from_ext(
"SELECT",
" m.id AS msg_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",
" WHERE rfc724_mid=? AND from_id=1",
),