Merge pull request #8544 from overleaf/bg-fix-log-message

fix message in downgrade_project script

GitOrigin-RevId: 9619f1122d1d242a1f3cfd7e07c7ddfd908e340e
This commit is contained in:
Brian Gough 2022-06-23 09:10:51 +01:00 committed by Copybot
parent 4ec107137a
commit 496f283892

View file

@ -31,9 +31,7 @@ async function processProject(project) {
await ProjectHistoryHandler.promises.downgradeHistory(project._id) await ProjectHistoryHandler.promises.downgradeHistory(project._id)
} }
if (VERBOSE_LOGGING) { if (VERBOSE_LOGGING) {
console.log( console.log(`project ${project._id} downgraded to track-changes`)
`project ${project._id} converted and upgraded to full project history`
)
} }
} }
@ -64,7 +62,7 @@ async function main() {
// then history could get into a broken state // then history could get into a broken state
// Instead, skip any unprocessed projects and exit() at end of the batch. // Instead, skip any unprocessed projects and exit() at end of the batch.
process.on('SIGINT', function () { process.on('SIGINT', function () {
console.log('Caught SIGINT, waiting for in process upgrades to complete') console.log('Caught SIGINT, waiting for in process downgrades to complete')
INTERRUPT = true INTERRUPT = true
}) })