Skip to content

Commit

Permalink
Update campaignUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov authored Aug 21, 2024
1 parent fd3da43 commit 1cacae1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ async function enrichAndPersistCampaignForUpdate(request: any, firstPersist: boo
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.parentId = ExistingCampaignDetails?.parentId
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
request.body.CampaignDetails.projectType = request?.body?.CampaignDetails?.projectType ? request?.body?.CampaignDetails?.projectType : ExistingCampaignDetails?.projectType
Expand Down

0 comments on commit 1cacae1

Please sign in to comment.