diff --git a/server/modules/user/service/userService.js b/server/modules/user/service/userService.js index 68d2f887f4..bc80d07d5d 100644 --- a/server/modules/user/service/userService.js +++ b/server/modules/user/service/userService.js @@ -234,7 +234,7 @@ export const acceptUserAccessRequest = async ({ user, serverUrl, accessRequestAc t ) const surveyOwnerUuid = User.getUuid(userInvited) - await SurveyManager.updateSurveyOwner({ user, surveyId, ownerUuid: surveyOwnerUuid, system: true }) + await SurveyManager.updateSurveyOwner({ user, surveyId, ownerUuid: surveyOwnerUuid, system: true }, t) survey = Survey.assocOwnerUuid(surveyOwnerUuid)(survey) return { survey, userInvited } })