diff options
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[] |