Skip to content

Commit

Permalink
Fixed accept user access request error (db transaction not passed in …
Browse files Browse the repository at this point in the history
…function call) (#3622)

Co-authored-by: Stefano Ricci <[email protected]>
  • Loading branch information
SteRiccio and SteRiccio authored Oct 27, 2024
1 parent ea97b89 commit 1587f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/modules/user/service/userService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
})
Expand Down

0 comments on commit 1587f74

Please sign in to comment.