mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #14048 from overleaf/mj-recurly-script-update
[web] recurly resync script update GitOrigin-RevId: 798cb73f46b763f6ece6b12d63fe82fbcc6c2920
This commit is contained in:
parent
98a847ae75
commit
800c9d63b4
2 changed files with 11 additions and 4 deletions
|
@ -472,6 +472,9 @@ const RecurlyWrapper = {
|
|||
(response.statusCode !== 404 || !expect404) &&
|
||||
(response.statusCode !== 422 || !expect422)
|
||||
) {
|
||||
if (options.headers.Authorization) {
|
||||
options.headers.Authorization = 'REDACTED'
|
||||
}
|
||||
logger.warn(
|
||||
{
|
||||
err: error,
|
||||
|
|
|
@ -30,12 +30,16 @@ const ScriptLogger = {
|
|||
ScriptLogger.mismatchSubscriptionsCount += 1
|
||||
const mismatchReasonsString = JSON.stringify(mismatchReasons)
|
||||
if (ScriptLogger.allMismatchReasons[mismatchReasonsString]) {
|
||||
ScriptLogger.allMismatchReasons[mismatchReasonsString].push(
|
||||
subscription._id
|
||||
)
|
||||
ScriptLogger.allMismatchReasons[mismatchReasonsString].push({
|
||||
id: subscription._id,
|
||||
name: subscription.planCode,
|
||||
})
|
||||
} else {
|
||||
ScriptLogger.allMismatchReasons[mismatchReasonsString] = [
|
||||
subscription._id,
|
||||
{
|
||||
id: subscription._id,
|
||||
name: subscription.planCode,
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue