-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
| const pendingFullState = _.merge({}, org.toObject(), pendingReviewData) |
However, org comes from:
| const org = await repo.findOneByShortName(shortName) |
(i.e., what existed in the database whenever that line of code executed) but pendingReviewData comes from:
| const pendingReview = await reviewRepo.getOrgReviewObjectByOrgShortname(shortName, isSecretariat, { session }) |
(i.e., reading from the transaction snapshot). By retrieving pendingReviewData and the stored BaseOrg document inside the same transaction, one can increase the likelihood that the review data was intended to be applicable to that BaseOrg document.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Review
Status
Todo