diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-28 11:14:26 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 07b1a18aa678d260009a93e36606c5c5f585723d (patch) | |
tree | 27a399fa0f7a29a7ac1d7d7cf077a24ea6ee39de /server/models/video/video-playlist.ts | |
parent | 418d092afa81e2c8fe8ac6838fc4b5eb0af6a782 (diff) | |
download | PeerTube-07b1a18aa678d260009a93e36606c5c5f585723d.tar.gz PeerTube-07b1a18aa678d260009a93e36606c5c5f585723d.tar.zst PeerTube-07b1a18aa678d260009a93e36606c5c5f585723d.zip |
Add playlist check param tests
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 | ||