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:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user