diff options
Diffstat (limited to 'shared/server-commands/videos/playlists-command.ts')
-rw-r--r-- | shared/server-commands/videos/playlists-command.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shared/server-commands/videos/playlists-command.ts b/shared/server-commands/videos/playlists-command.ts index ce23900d3..516da0bf7 100644 --- a/shared/server-commands/videos/playlists-command.ts +++ b/shared/server-commands/videos/playlists-command.ts | |||
@@ -1,5 +1,4 @@ | |||
1 | import { omit } from 'lodash' | 1 | import { omit, pick } from '@shared/core-utils' |
2 | import { pick } from '@shared/core-utils' | ||
3 | import { | 2 | import { |
4 | BooleanBothQuery, | 3 | BooleanBothQuery, |
5 | HttpStatusCode, | 4 | HttpStatusCode, |
@@ -136,7 +135,7 @@ export class PlaylistsCommand extends AbstractCommand { | |||
136 | }) { | 135 | }) { |
137 | const path = '/api/v1/video-playlists' | 136 | const path = '/api/v1/video-playlists' |
138 | 137 | ||
139 | const fields = omit(options.attributes, 'thumbnailfile') | 138 | const fields = omit(options.attributes, [ 'thumbnailfile' ]) |
140 | 139 | ||
141 | const attaches = options.attributes.thumbnailfile | 140 | const attaches = options.attributes.thumbnailfile |
142 | ? { thumbnailfile: options.attributes.thumbnailfile } | 141 | ? { thumbnailfile: options.attributes.thumbnailfile } |
@@ -161,7 +160,7 @@ export class PlaylistsCommand extends AbstractCommand { | |||
161 | }) { | 160 | }) { |
162 | const path = '/api/v1/video-playlists/' + options.playlistId | 161 | const path = '/api/v1/video-playlists/' + options.playlistId |
163 | 162 | ||
164 | const fields = omit(options.attributes, 'thumbnailfile') | 163 | const fields = omit(options.attributes, [ 'thumbnailfile' ]) |
165 | 164 | ||
166 | const attaches = options.attributes.thumbnailfile | 165 | const attaches = options.attributes.thumbnailfile |
167 | ? { thumbnailfile: options.attributes.thumbnailfile } | 166 | ? { thumbnailfile: options.attributes.thumbnailfile } |