diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-13 17:43:30 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-13 18:07:35 +0200 |
commit | 9a4a9b6c4e193739d542f73ee85cd305067f2aea (patch) | |
tree | df9b719142dc098764c7a7878a086880b8f9e6bf /server/models/account | |
parent | 4555697f216e894e5651d8f6d3d971e7d0c17d17 (diff) | |
download | PeerTube-9a4a9b6c4e193739d542f73ee85cd305067f2aea.tar.gz PeerTube-9a4a9b6c4e193739d542f73ee85cd305067f2aea.tar.zst PeerTube-9a4a9b6c4e193739d542f73ee85cd305067f2aea.zip |
Fix offset/limit on some SQL queries :facepalm:
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/account-video-rate.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/account-video-rate.ts b/server/models/account/account-video-rate.ts index 508ab814f..9c19ec748 100644 --- a/server/models/account/account-video-rate.ts +++ b/server/models/account/account-video-rate.ts | |||
@@ -70,8 +70,8 @@ export class AccountVideoRateModel extends Model<AccountVideoRateModel> { | |||
70 | 70 | ||
71 | static listAndCountAccountUrlsByVideoId (rateType: VideoRateType, videoId: number, start: number, count: number, t?: Transaction) { | 71 | static listAndCountAccountUrlsByVideoId (rateType: VideoRateType, videoId: number, start: number, count: number, t?: Transaction) { |
72 | const query = { | 72 | const query = { |
73 | start, | 73 | offset: start, |
74 | count, | 74 | limit: count, |
75 | where: { | 75 | where: { |
76 | videoId, | 76 | videoId, |
77 | type: rateType | 77 | type: rateType |