We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ecd66f commit 9b8e82fCopy full SHA for 9b8e82f
1 file changed
src/cio.ts
@@ -168,10 +168,9 @@ export const identifyUserOpportunities = async ({
168
select: ['opportunityId'],
169
order: { createdAt: 'ASC' },
170
});
171
+ const ids = opportunities.map((opportunity) => opportunity.opportunityId);
172
await cio.identify(userId, {
- opportunities: opportunities.map(
173
- (opportunity) => opportunity.opportunityId,
174
- ),
+ opportunities: ids || null,
175
176
};
177
0 commit comments