Skip to content

Commit f0a810a

Browse files
committed
set causalConsistency values to false
1 parent dd437a1 commit f0a810a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/controller/review-object.controller/review-object.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function approveReviewObject (req, res, next) {
6565
const isPendingReview = true
6666
const UUID = req.params.uuid
6767
const body = req.body
68-
const session = await mongoose.startSession({ causalConsistency: true })
68+
const session = await mongoose.startSession({ causalConsistency: false })
6969
let updatedOrgObj
7070

7171
try {
@@ -122,7 +122,7 @@ async function updateReviewObjectByReviewUUID (req, res, next) {
122122
const UUID = req.params.uuid
123123
const orgRepo = req.ctx.repositories.getBaseOrgRepository()
124124
const body = req.body
125-
const session = await mongoose.startSession({ causalConsistency: true })
125+
const session = await mongoose.startSession({ causalConsistency: false })
126126
let updatedReviewObj
127127

128128
const result = orgRepo.validateOrg(body)
@@ -216,7 +216,7 @@ async function rejectReviewObject (req, res, next) {
216216
const reviewRepo = req.ctx.repositories.getReviewObjectRepository()
217217
const baseOrgRepo = req.ctx.repositories.getBaseOrgRepository()
218218
const UUID = req.params.uuid
219-
const session = await mongoose.startSession({ causalConsistency: true })
219+
const session = await mongoose.startSession({ causalConsistency: false })
220220

221221
const isSecretariat = await baseOrgRepo.isSecretariatByShortName(req.ctx.org, { session })
222222

0 commit comments

Comments
 (0)