Skip to content

Commit

Permalink
ch: modify debud data 4
Browse files Browse the repository at this point in the history
  • Loading branch information
acedeywin committed Jun 19, 2024
1 parent e9f6a0a commit 78b70ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions functions/channelCapture/channelCaptureHandlers.private.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ const updateChannelWithCapture = async (
channelType,
} = attributes;

console.log('attributes in channelCapture', attributes);

const channelAttributes = JSON.parse(channel.attributes);

console.log('channelAttributes in channelCapture', channelAttributes);

const userIdentityOrParticipantId = await getServiceUserIdentityOrParticipantId(
channel,
channelAttributes,
Expand Down Expand Up @@ -146,6 +150,8 @@ const updateChannelWithCapture = async (
}),
};

console.log('newAttributes in channelCapture', newAttributes);

if (isConversation) {
return (channel as ConversationInstance).update(
newAttributes as ConversationInstanceUpdateOptions,
Expand Down

0 comments on commit 78b70ff

Please sign in to comment.