Merge pull request #5123 from overleaf/tm-history-script-await-fix

Add missing await in history scripts

GitOrigin-RevId: 992e6748bc270845282853db6ec1a7aa496115ea
This commit is contained in:
Thomas 2021-09-23 11:51:46 +02:00 committed by Copybot
parent 16761be4f6
commit 3361ccfec1
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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: {