static listAndCountByVideoId (videoId: number, start: number, count: number, t?: Sequelize.Transaction, order: 'ASC' | 'DESC' = 'ASC') {
const query = {
order: [ [ 'createdAt', order ] ],
- start,
- count,
+ offset: start,
+ limit: count,
where: {
videoId
},
static listForFeed (start: number, count: number, videoId?: number) {
const query = {
order: [ [ 'createdAt', 'DESC' ] ],
- start,
- count,
+ offset: start,
+ limit: count,
where: {},
include: [
{
await waitJobs(servers[0])
// Wait scheduler
- await wait(3000)
+ await wait(11000)
const res = await getFollowersListPaginationAndSort(servers[0].url, 0, 1, 'createdAt')
expect(res.body.data).to.be.an('array')