]
})
@Scopes({
- [ScopeNames.SUMMARY]: (required: boolean, withAccount: boolean) => {
+ [ScopeNames.SUMMARY]: (withAccount = false) => {
const base: IFindOptions<VideoChannelModel> = {
- attributes: [ 'name', 'description', 'id' ],
+ attributes: [ 'name', 'description', 'id', 'actorId' ],
include: [
{
attributes: [ 'uuid', 'preferredUsername', 'url', 'serverId', 'avatarId' ],
@HasMany(() => VideoPlaylistModel, {
foreignKey: {
- allowNull: false
+ allowNull: true
},
- onDelete: 'cascade',
+ onDelete: 'CASCADE',
hooks: true
})
VideoPlaylists: VideoPlaylistModel[]