Skip to content

Commit

Permalink
Update campaignUtils.ts (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov authored Aug 21, 2024
1 parent ea04680 commit 5fa0e76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ async function enrichAndPersistCampaignForUpdate(request: any, firstPersist: boo
request.body.CampaignDetails.status = action == "create" ? campaignStatuses.started : campaignStatuses.drafted;
const boundaryCode = !(request?.body?.CampaignDetails?.projectId) ? getRootBoundaryCode(request.body.CampaignDetails.boundaries) : (request?.body?.CampaignDetails?.boundaryCode || ExistingCampaignDetails?.boundaryCode)
request.body.CampaignDetails.boundaryCode = boundaryCode
request.body.CampaignDetails.isActive = ExistingCampaignDetails?.isActive
request.body.CampaignDetails.isActive = ExistingCampaignDetails?.isActive || null
request.body.CampaignDetails.parentId = ExistingCampaignDetails?.parentId || null
request.body.CampaignDetails.startDate = request?.body?.CampaignDetails?.startDate || ExistingCampaignDetails?.startDate || null
request.body.CampaignDetails.endDate = request?.body?.CampaignDetails?.endDate || ExistingCampaignDetails?.endDate || null
Expand Down

0 comments on commit 5fa0e76

Please sign in to comment.