diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-05 10:58:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa (patch) | |
tree | c4984e854f5dc18e5c27afd73b843bd52c143034 /server/models/video/video-channel.ts | |
parent | 07b1a18aa678d260009a93e36606c5c5f585723d (diff) | |
download | PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.gz PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.zst PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.zip |
Add playlist rest tests
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index c077fb518..ca06048d1 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -67,9 +67,9 @@ type AvailableForListOptions = { | |||
67 | ] | 67 | ] |
68 | }) | 68 | }) |
69 | @Scopes({ | 69 | @Scopes({ |
70 | [ScopeNames.SUMMARY]: (required: boolean, withAccount: boolean) => { | 70 | [ScopeNames.SUMMARY]: (withAccount = false) => { |
71 | const base: IFindOptions<VideoChannelModel> = { | 71 | const base: IFindOptions<VideoChannelModel> = { |
72 | attributes: [ 'name', 'description', 'id' ], | 72 | attributes: [ 'name', 'description', 'id', 'actorId' ], |
73 | include: [ | 73 | include: [ |
74 | { | 74 | { |
75 | attributes: [ 'uuid', 'preferredUsername', 'url', 'serverId', 'avatarId' ], | 75 | attributes: [ 'uuid', 'preferredUsername', 'url', 'serverId', 'avatarId' ], |
@@ -225,7 +225,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> { | |||
225 | foreignKey: { | 225 | foreignKey: { |
226 | allowNull: true | 226 | allowNull: true |
227 | }, | 227 | }, |
228 | onDelete: 'cascade', | 228 | onDelete: 'CASCADE', |
229 | hooks: true | 229 | hooks: true |
230 | }) | 230 | }) |
231 | VideoPlaylists: VideoPlaylistModel[] | 231 | VideoPlaylists: VideoPlaylistModel[] |