aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-08 15:11:38 +0100
committerChocobozzz <me@florianbigard.com>2020-01-08 15:44:41 +0100
commite612209767ebe1deb0af7688c96b7f979bb52b44 (patch)
treec5be9241e41a098f5452fe3cd187e2305d8047e3 /server/models/video/video-channel.ts
parent440d39c52d4efb878b6a2e21584d6b8f52072f27 (diff)
downloadPeerTube-e612209767ebe1deb0af7688c96b7f979bb52b44.tar.gz
PeerTube-e612209767ebe1deb0af7688c96b7f979bb52b44.tar.zst
PeerTube-e612209767ebe1deb0af7688c96b7f979bb52b44.zip
Try to fix subscriptions inconsistencies
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts2
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()) {