diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-01 15:08:59 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-01 15:08:59 +0100 |
commit | 49cff3a4c950b22ae13f345dc4eab803d96a236e (patch) | |
tree | cd918676792834b6cfaee70c582249496320ddd1 /server/models/video/video-playlist.ts | |
parent | 15feebd97ab5291f81b2a8cdcb16a8e4f4c5aa69 (diff) | |
download | PeerTube-49cff3a4c950b22ae13f345dc4eab803d96a236e.tar.gz PeerTube-49cff3a4c950b22ae13f345dc4eab803d96a236e.tar.zst PeerTube-49cff3a4c950b22ae13f345dc4eab803d96a236e.zip |
Keep displayName as valid playlist sort
Diffstat (limited to 'server/models/video/video-playlist.ts')
-rw-r--r-- | server/models/video/video-playlist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts index 581179640..b020bfa45 100644 --- a/server/models/video/video-playlist.ts +++ b/server/models/video/video-playlist.ts | |||
@@ -16,7 +16,7 @@ import { | |||
16 | UpdatedAt | 16 | UpdatedAt |
17 | } from 'sequelize-typescript' | 17 | } from 'sequelize-typescript' |
18 | import { VideoPlaylistPrivacy } from '../../../shared/models/videos/playlist/video-playlist-privacy.model' | 18 | import { VideoPlaylistPrivacy } from '../../../shared/models/videos/playlist/video-playlist-privacy.model' |
19 | import { buildServerIdsFollowedBy, buildWhereIdOrUUID, getSort, isOutdated, throwIfNotValid } from '../utils' | 19 | import { buildServerIdsFollowedBy, buildWhereIdOrUUID, getPlaylistSort, getPlaylistSort, isOutdated, throwIfNotValid } from '../utils' |
20 | import { | 20 | import { |
21 | isVideoPlaylistDescriptionValid, | 21 | isVideoPlaylistDescriptionValid, |
22 | isVideoPlaylistNameValid, | 22 | isVideoPlaylistNameValid, |
@@ -312,7 +312,7 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> { | |||
312 | const query = { | 312 | const query = { |
313 | offset: options.start, | 313 | offset: options.start, |
314 | limit: options.count, | 314 | limit: options.count, |
315 | order: getSort(options.sort) | 315 | order: getPlaylistSort(options.sort) |
316 | } | 316 | } |
317 | 317 | ||
318 | const scopes: (string | ScopeOptions)[] = [ | 318 | const scopes: (string | ScopeOptions)[] = [ |