diff --git a/services/web/scripts/history/upgrade_v1_without_conversion_if_created_after_fph_enabled.js b/services/web/scripts/history/upgrade_v1_without_conversion_if_created_after_fph_enabled.js index b047f28421..a21ad71431 100644 --- a/services/web/scripts/history/upgrade_v1_without_conversion_if_created_after_fph_enabled.js +++ b/services/web/scripts/history/upgrade_v1_without_conversion_if_created_after_fph_enabled.js @@ -70,7 +70,7 @@ async function doUpgradeForV1WithoutConversion(project, allowDowngrade) { setProperties['overleaf.history.allowDowngrade'] = true } if (!DRY_RUN) { - db.projects.updateOne( + await db.projects.updateOne( { _id: project._id }, { $set: setProperties, diff --git a/services/web/scripts/history/upgrade_v1_without_conversion_if_no_sl_history.js b/services/web/scripts/history/upgrade_v1_without_conversion_if_no_sl_history.js index 24a9b68b62..40c3cfac19 100644 --- a/services/web/scripts/history/upgrade_v1_without_conversion_if_no_sl_history.js +++ b/services/web/scripts/history/upgrade_v1_without_conversion_if_no_sl_history.js @@ -37,7 +37,7 @@ async function processProject(project) { async function doUpgradeForV1WithoutConversion(project) { if (!DRY_RUN) { - db.projects.updateOne( + await db.projects.updateOne( { _id: project._id }, { $set: {