}
static loadByUrl (url: string, t: Sequelize.Transaction) {
- return VideoShareModel.scope(ScopeNames.WITH_ACTOR).findOne({
+ return VideoShareModel.scope(ScopeNames.FULL).findOne({
where: {
url
},
static listAndCountByVideoId (videoId: number, start: number, count: number, t?: Sequelize.Transaction) {
const query = {
- start,
- count,
+ offset: start,
+ limit: count,
where: {
videoId
},