mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -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()
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user