From 1587f74f7c560163a47b3f7ea691b5d3175a6bf8 Mon Sep 17 00:00:00 2001 From: Stefano Ricci <1219739+SteRiccio@users.noreply.github.com> Date: Sun, 27 Oct 2024 10:37:13 +0100 Subject: [PATCH] Fixed accept user access request error (db transaction not passed in function call) (#3622) Co-authored-by: Stefano Ricci --- server/modules/user/service/userService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } })