mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #10260 from overleaf/jel-script-messages
[web] Update script logs GitOrigin-RevId: 5f98ac127a87250d4d75c6092ea8c051ac9ab46a
This commit is contained in:
parent
d37344e27b
commit
c5d35bce0e
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ const InstitutionsManager = require('../app/src/Features/Institutions/Institutio
|
|||
|
||||
const institutionId = parseInt(process.argv[2])
|
||||
if (isNaN(institutionId)) throw new Error('No institution id')
|
||||
console.log('Upgrading users of institution', institutionId)
|
||||
console.log('Refreshing users at institution', institutionId)
|
||||
|
||||
waitForDb()
|
||||
.then(main)
|
||||
|
|
|
@ -25,12 +25,12 @@ async function main() {
|
|||
|
||||
if (emitUsers) {
|
||||
console.log(
|
||||
`\nMigrated: ${result.migrated}\nNot migrated: ${result.notMigrated}\nMultiple Identifers: ${result.multipleIdentifiers}`
|
||||
`\nMigrated: ${result.migrated}\nNot migrated: ${result.notMigrated}\nMultiple Identifiers: ${result.multipleIdentifiers}`
|
||||
)
|
||||
}
|
||||
|
||||
console.log(
|
||||
`\nMigrated: ${result.migrated.length}\nNot migrated: ${result.notMigrated.length}\nMultiple Identifers: ${result.multipleIdentifiers.length}`
|
||||
`\nMigrated: ${result.migrated.length}\nNot migrated: ${result.notMigrated.length}\nMultiple Identifiers: ${result.multipleIdentifiers.length}`
|
||||
)
|
||||
|
||||
process.exit()
|
||||
|
|
Loading…
Reference in a new issue