mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
16761be4f6
commit
3361ccfec1
2 changed files with 2 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue