Merge pull request #10260 from overleaf/jel-script-messages

[web] Update script logs

GitOrigin-RevId: 5f98ac127a87250d4d75c6092ea8c051ac9ab46a
This commit is contained in:
Jessica Lawshe 2022-11-14 09:07:44 -06:00 committed by Copybot
parent d37344e27b
commit c5d35bce0e
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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()