From eba920dcbfb2b6b0f8f15cfa79dda17500ec1e20 Mon Sep 17 00:00:00 2001 From: Alex Yau Date: Tue, 3 Sep 2024 10:28:21 +1000 Subject: [PATCH] Fix audit trails for invite user to participant --- src/api/routers/participants/participantsUsers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/routers/participants/participantsUsers.ts b/src/api/routers/participants/participantsUsers.ts index 6ef60f09..35465ae7 100644 --- a/src/api/routers/participants/participantsUsers.ts +++ b/src/api/routers/participants/participantsUsers.ts @@ -37,8 +37,9 @@ export async function handleInviteUserToParticipant(req: UserParticipantRequest, firstName: userPartial.firstName, lastName: userPartial.lastName, email: userPartial.email, - jonFunction: userPartial.jobFunction, - } + jobFunction: userPartial.jobFunction, + }, + participant!.id ); await performAsyncOperationWithAuditTrail(auditTrailInsertObject, traceId, async () => {