🐛 Bug fixes on query statement

This commit is contained in:
2024-11-02 23:47:44 +08:00
parent 553a87ab78
commit f9a01bff70
8 changed files with 12 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ func GetConversation(start uint, offset, take int, order string, participants []
SELECT p.*
FROM %s p
INNER JOIN conversation c ON p.reply_id = c.id AND p.author_id IN (?)
INNER JOIN conversation c ON p.reply_id = c.id AND p.publisher_id IN (?)
)
SELECT * FROM conversation ORDER BY %s DESC OFFSET %d LIMIT %d`,
table, table, order, offset, take,