diff options
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 93b8c2f58..397887ebf 100644 --- a/server/models/video/video-playlist.ts +++ b/server/models/video/video-playlist.ts | |||
@@ -197,7 +197,7 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> { | |||
197 | 197 | ||
198 | @BelongsTo(() => VideoChannelModel, { | 198 | @BelongsTo(() => VideoChannelModel, { |
199 | foreignKey: { | 199 | foreignKey: { |
200 | allowNull: false | 200 | allowNull: true |
201 | }, | 201 | }, |
202 | onDelete: 'CASCADE' | 202 | onDelete: 'CASCADE' |
203 | }) | 203 | }) |
@@ -351,7 +351,7 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> { | |||
351 | updatedAt: this.updatedAt, | 351 | updatedAt: this.updatedAt, |
352 | 352 | ||
353 | ownerAccount: this.OwnerAccount.toFormattedSummaryJSON(), | 353 | ownerAccount: this.OwnerAccount.toFormattedSummaryJSON(), |
354 | videoChannel: this.VideoChannel.toFormattedSummaryJSON() | 354 | videoChannel: this.VideoChannel ? this.VideoChannel.toFormattedSummaryJSON() : null |
355 | } | 355 | } |
356 | } | 356 | } |
357 | 357 | ||