Optimize again comments list sql query

This commit is contained in:
Chocobozzz
2023-01-12 11:11:30 +01:00
parent 3f3530c3db
commit 0b96a0fb77
3 changed files with 38 additions and 16 deletions

View File

@@ -169,6 +169,13 @@ describe('Test video comments', function () {
expect(body.data[2].totalReplies).to.equal(0)
})
it('Should list the and sort them by total replies', async function () {
const body = await command.listThreads({ videoId: videoUUID, sort: 'totalReplies' })
expect(body.data[2].text).to.equal('my super first comment')
expect(body.data[2].totalReplies).to.equal(3)
})
it('Should delete a reply', async function () {
await command.delete({ videoId, commentId: replyToDeleteId })