X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-share.ts;h=fa9a70d509b42fccb99a59e8a10b9139a91f8b15;hb=5cf84858d49f4231cc4efec5e3132f17f65f6cf6;hp=15dba3f7d91bd8a0495581c561d748f6eece36d7;hpb=9588d4f49b7183631ddb97fa9c3cd79f9bfe2945;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video-share.ts b/server/models/video/video-share.ts index 15dba3f7d..fa9a70d50 100644 --- a/server/models/video/video-share.ts +++ b/server/models/video/video-share.ts @@ -190,8 +190,8 @@ export class VideoShareModel extends Model { static listAndCountByVideoId (videoId: number, start: number, count: number, t?: Sequelize.Transaction) { const query = { - start, - count, + offset: start, + limit: count, where: { videoId },