aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-19 09:41:03 +0100
committerChocobozzz <me@florianbigard.com>2018-02-19 10:48:44 +0100
commit3bb6c52645af84832212c99fdec04143e4230180 (patch)
treed91539e2aed89bdd0e6d0530db5e92da45e20fb9 /server/models/video/video-channel.ts
parent2519d9fec6f84906d1b10770be791ad367186ca7 (diff)
downloadPeerTube-3bb6c52645af84832212c99fdec04143e4230180.tar.gz
PeerTube-3bb6c52645af84832212c99fdec04143e4230180.tar.zst
PeerTube-3bb6c52645af84832212c99fdec04143e4230180.zip
Fix sort inconsistency
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 289775a0f..40f3be7fe 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -151,7 +151,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> {
151 const query = { 151 const query = {
152 offset: start, 152 offset: start,
153 limit: count, 153 limit: count,
154 order: [ getSort(sort) ] 154 order: getSort(sort)
155 } 155 }
156 156
157 return VideoChannelModel 157 return VideoChannelModel
@@ -164,7 +164,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> {
164 164
165 static listByAccount (accountId: number) { 165 static listByAccount (accountId: number) {
166 const query = { 166 const query = {
167 order: [ getSort('createdAt') ], 167 order: getSort('createdAt'),
168 include: [ 168 include: [
169 { 169 {
170 model: AccountModel, 170 model: AccountModel,