mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed transaction completion error on collection update
refs https://github.com/TryGhost/Arch/issues/16 - Without an extra await in the update function the passed in transaction would complete before all updates had a chance to run within this transaction.
This commit is contained in:
parent
fe4c0b18cf
commit
aaf0998129
1 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ export class CollectionsService {
|
|||
return;
|
||||
}
|
||||
|
||||
this.updatePostsInCollections(postIds, collections, transaction);
|
||||
await this.updatePostsInCollections(postIds, collections, transaction);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -386,7 +386,7 @@ export class CollectionsService {
|
|||
return;
|
||||
}
|
||||
|
||||
this.updatePostsInCollections(postIds, collections, transaction);
|
||||
await this.updatePostsInCollections(postIds, collections, transaction);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue