Skip to content

Commit

Permalink
Update campaignMappingUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov authored Jul 23, 2024
1 parent 5eb8aa7 commit 556dcb0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async function processCampaignMapping(messageObject: any) {
logger.info("Campaign Already In Progress and Mapped");
}
else {
await persistTrack(id, processTrackTypes.confirmingResouceCreation, processTrackStatuses.inprogress);
await persistTrack(id, processTrackTypes.confirmingResourceCreation, processTrackStatuses.inprogress);
try {
var completedResources: any = []
var resources = [];
Expand Down Expand Up @@ -333,10 +333,10 @@ async function processCampaignMapping(messageObject: any) {
}
} catch (error: any) {
console.log(error)
await persistTrack(id, processTrackTypes.confirmingResouceCreation, processTrackStatuses.failed, { error: String((error?.message + (error?.description ? ` : ${error?.description}` : '')) || error) });
await persistTrack(id, processTrackTypes.confirmingResourceCreation, processTrackStatuses.failed, { error: String((error?.message + (error?.description ? ` : ${error?.description}` : '')) || error) });
throw new Error(error)
}
await persistTrack(id, processTrackTypes.confirmingResouceCreation, processTrackStatuses.completed);
await persistTrack(id, processTrackTypes.confirmingResourceCreation, processTrackStatuses.completed);
await fetchAndMap(resources, messageObject);
}
}
Expand Down

0 comments on commit 556dcb0

Please sign in to comment.