Fix getParentsPosts for postgresql

This commit is contained in:
Jason Rossman
2015-08-26 15:59:54 -06:00
parent 378f0b52c1
commit 4aafff7f83

View File

@@ -343,6 +343,7 @@ func (s SqlPostStore) getParentsPosts(channelId string, offset int, limit int) S
WHERE
ChannelId = :ChannelId1
AND DeleteAt = 0
AND RootId <> ''
ORDER BY CreateAt DESC
LIMIT :Limit OFFSET :Offset) q3) q1 ON q1.RootId = q2.RootId
WHERE