diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-08 15:11:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-08 15:44:41 +0100 |
commit | e612209767ebe1deb0af7688c96b7f979bb52b44 (patch) | |
tree | c5be9241e41a098f5452fe3cd187e2305d8047e3 /server/models/account | |
parent | 440d39c52d4efb878b6a2e21584d6b8f52072f27 (diff) | |
download | PeerTube-e612209767ebe1deb0af7688c96b7f979bb52b44.tar.gz PeerTube-e612209767ebe1deb0af7688c96b7f979bb52b44.tar.zst PeerTube-e612209767ebe1deb0af7688c96b7f979bb52b44.zip |
Try to fix subscriptions inconsistencies
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/account.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index a757b7203..8a0ffeb63 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -223,7 +223,7 @@ export class AccountModel extends Model<AccountModel> { | |||
223 | @BeforeDestroy | 223 | @BeforeDestroy |
224 | static async sendDeleteIfOwned (instance: AccountModel, options) { | 224 | static async sendDeleteIfOwned (instance: AccountModel, options) { |
225 | if (!instance.Actor) { | 225 | if (!instance.Actor) { |
226 | instance.Actor = await instance.$get('Actor', { transaction: options.transaction }) as ActorModel | 226 | instance.Actor = await instance.$get('Actor', { transaction: options.transaction }) |
227 | } | 227 | } |
228 | 228 | ||
229 | await ActorFollowModel.removeFollowsOf(instance.Actor.id, options.transaction) | 229 | await ActorFollowModel.removeFollowsOf(instance.Actor.id, options.transaction) |