chore: Add custom attributes in campaign.triggered event (#4463)

This commit is contained in:
Muhsin Keloth
2022-04-20 10:49:52 +05:30
committed by GitHub
parent 5b9c4bf7f1
commit 4f3a271355
8 changed files with 34 additions and 16 deletions

View File

@@ -92,14 +92,17 @@ export const actions = {
}
},
executeCampaign: async ({ commit }, { campaignId, websiteToken }) => {
executeCampaign: async (
{ commit },
{ campaignId, websiteToken, customAttributes }
) => {
try {
commit(
'conversation/setConversationUIFlag',
{ isCreating: true },
{ root: true }
);
await triggerCampaign({ campaignId, websiteToken });
await triggerCampaign({ campaignId, websiteToken, customAttributes });
commit('setCampaignExecuted', true);
commit('setActiveCampaign', {});
} catch (error) {