diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-16 11:56:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-16 11:56:58 +0100 |
commit | e65ef81cf51746616182a822bd6933bf0d16717a (patch) | |
tree | ff9e715b50eb690b8fbb5263cf1371d9f8103ff1 /server/controllers/api/users/my-subscriptions.ts | |
parent | 5bfe684e76d32a7745671635f8a75f932bd522e4 (diff) | |
download | PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.gz PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.zst PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.zip |
Update server dependencies
Diffstat (limited to 'server/controllers/api/users/my-subscriptions.ts')
-rw-r--r-- | server/controllers/api/users/my-subscriptions.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/users/my-subscriptions.ts b/server/controllers/api/users/my-subscriptions.ts index a750f9bd1..6c64e99a7 100644 --- a/server/controllers/api/users/my-subscriptions.ts +++ b/server/controllers/api/users/my-subscriptions.ts | |||
@@ -138,7 +138,9 @@ async function deleteUserSubscription (req: express.Request, res: express.Respon | |||
138 | const subscription = res.locals.subscription | 138 | const subscription = res.locals.subscription |
139 | 139 | ||
140 | await sequelizeTypescript.transaction(async t => { | 140 | await sequelizeTypescript.transaction(async t => { |
141 | if (subscription.state === 'accepted') await sendUndoFollow(subscription, t) | 141 | if (subscription.state === 'accepted') { |
142 | sendUndoFollow(subscription, t) | ||
143 | } | ||
142 | 144 | ||
143 | return subscription.destroy({ transaction: t }) | 145 | return subscription.destroy({ transaction: t }) |
144 | }) | 146 | }) |