Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
jagankumar-egov and coderabbitai[bot] authored Dec 4, 2024
1 parent 1e17eb3 commit b4fdc1b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions health-services/project-factory/src/server/api/campaignApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1969,14 +1969,10 @@ const getHeadersOfBoundarySheet = async (
async function getCampaignSearchResponse(request: any) {
try {
logger.info(`searching for campaign details`);
const CampaignDetails = {
tenantId:
request?.query?.tenantId || request?.body?.ResourceDetails?.tenantId,
ids: [
request?.query?.campaignId ||
request?.body?.ResourceDetails?.campaignId,
],
}
const CampaignDetails = {
tenantId: request?.query?.tenantId || request?.body?.ResourceDetails?.tenantId,
ids: [request?.query?.campaignId || request?.body?.ResourceDetails?.campaignId],
};
const projectTypeSearchResponse: any =
await searchProjectTypeCampaignService(CampaignDetails);
return projectTypeSearchResponse;
Expand Down

0 comments on commit b4fdc1b

Please sign in to comment.