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: [
{