Merge pull request #3495 from overleaf/ae-prettier-2

Upgrade Prettier to v2

GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
Alf Eaton
2021-04-14 14:17:21 +01:00
committed by Copybot
parent 930d7ba028
commit 1ebc8a79cb
582 changed files with 20382 additions and 20374 deletions

View File

@@ -13,15 +13,15 @@ waitForDb()
})
function main() {
InstitutionsManager.checkInstitutionUsers(institutionId, function(
error,
usersSummary
) {
if (error) {
console.log(error)
} else {
console.log(usersSummary)
InstitutionsManager.checkInstitutionUsers(
institutionId,
function (error, usersSummary) {
if (error) {
console.log(error)
} else {
console.log(usersSummary)
}
process.exit()
}
process.exit()
})
)
}

View File

@@ -57,8 +57,9 @@ const printAccountCSV = (account, callback) => {
hosted_login_token: account.hosted_login_token,
billing_info_url: `https://sharelatex.recurly.com/account/billing_info/edit?ht=${account.hosted_login_token}`,
account_management_url: `https://sharelatex.recurly.com/account/${account.hosted_login_token}`,
current_period_ends_at: `${endAt.getFullYear()}-${endAt.getMonth() +
1}-${endAt.getDate()}`,
current_period_ends_at: `${endAt.getFullYear()}-${
endAt.getMonth() + 1
}-${endAt.getDate()}`,
current_period_ends_at_segment: parseInt(
((endAt - NOW) / 1000 / 3600 / 24 / 365) * 7
)

View File

@@ -24,14 +24,16 @@ function main() {
const notify = argv.notify[0] === 't'
console.log('Running with notify =', notify)
InstitutionsManager.refreshInstitutionUsers(institutionId, notify, function(
error
) {
if (error) {
console.log(error)
} else {
console.log('DONE 👌')
InstitutionsManager.refreshInstitutionUsers(
institutionId,
notify,
function (error) {
if (error) {
console.log(error)
} else {
console.log('DONE 👌')
}
process.exit()
}
process.exit()
})
)
}