mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
prevent attempting to set headers after we already sent respone (#25994)
GitOrigin-RevId: be9f63f4c6d86ccd7f55850d71f5f2564eab2f12
This commit is contained in:
committed by
Copybot
parent
40aeea02cd
commit
4fa0431262
@@ -590,7 +590,7 @@ function recurlyCallback(req, res, next) {
|
||||
}
|
||||
// if theres no restore point it could be a failed renewal, or no restore set. Either way it will be handled through dunning automatically
|
||||
if (!lastSubscription || !lastSubscription?.planCode) {
|
||||
res.sendStatus(200)
|
||||
return res.sendStatus(200)
|
||||
}
|
||||
SubscriptionHandler.revertPlanChange(
|
||||
eventData.transaction.subscription_id,
|
||||
@@ -599,7 +599,7 @@ function recurlyCallback(req, res, next) {
|
||||
if (err) {
|
||||
return next(err)
|
||||
}
|
||||
res.sendStatus(200)
|
||||
return res.sendStatus(200)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user