diff options
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 4 |
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, |