diff options
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 05545bd9d..e10adcb3a 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -249,7 +249,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> { | |||
249 | @BeforeDestroy | 249 | @BeforeDestroy |
250 | static async sendDeleteIfOwned (instance: VideoChannelModel, options) { | 250 | static async sendDeleteIfOwned (instance: VideoChannelModel, options) { |
251 | if (!instance.Actor) { | 251 | if (!instance.Actor) { |
252 | instance.Actor = await instance.$get('Actor', { transaction: options.transaction }) as ActorModel | 252 | instance.Actor = await instance.$get('Actor', { transaction: options.transaction }) |
253 | } | 253 | } |
254 | 254 | ||
255 | if (instance.Actor.isOwned()) { | 255 | if (instance.Actor.isOwned()) { |