Skip to content

Commit 48daf32

Browse files
authored
fix: fallback to user_id when user.name is missing (#1948)
Fixes an edge case in Gong's integration ``` Could not upload recording for call default:m7mwRh24OfNweGN8G2Lay { requestId: '1tg8hsly8vytebs7xlw', errors: [ 'parties[4]: non company party must include at least 1 identification information' ] } ```
1 parent 2fe1f9f commit 48daf32

File tree

1 file changed

+1
-1
lines changed
  • sample-apps/react/react-dogfood/helpers

1 file changed

+1
-1
lines changed

sample-apps/react/react-dogfood/helpers/gong.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function uploadCallRecording(
4747
name: primaryMember.user.name,
4848
emailAddress: primaryMember.user.custom.email,
4949
}
50-
: { name: member.user.name },
50+
: { name: member.user.name || member.user_id },
5151
),
5252
direction: 'Outbound',
5353
});

0 commit comments

Comments
 (0)