Skip to content

Commit

Permalink
added masterForColumnSchema in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish-egov committed Jun 5, 2024
1 parent eae0a1b commit 367284e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions utilities/project-factory/src/server/api/campaignApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ async function getCampaignSearchResponse(request: any) {
const projectTypeSearchResponse: any = await searchProjectTypeCampaignService(req);
return projectTypeSearchResponse;
} catch (error: any) {
logger.error(`Error while searching for campaign details: ${error.message}`);
throwError("COMMON", 400, "RESPONSE_NOT_FOUND_ERROR", error?.message)
}
}
Expand Down
2 changes: 1 addition & 1 deletion utilities/project-factory/src/server/api/genericApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ async function callMdmsV2Data(
MdmsCriteria: {
tenantId: tenantId,
filters,
schemaCode: moduleName + "." + "boundary",
schemaCode: moduleName + "." + config?.masterNameForSchemaOfColumnHeaders,
limit: 10,
offset: 0
},
Expand Down
1 change: 1 addition & 0 deletions utilities/project-factory/src/server/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if (!HOST) {
}
// Configuration object containing various environment variables
const config = {
masterNameForSchemaOfColumnHeaders: "boundary",
boundary: {
boundaryCode: process.env.BOUNDARY_CODE_HEADER_NAME || "HCM_ADMIN_CONSOLE_BOUNDARY_CODE",
boundaryTab: process.env.BOUNDARY_TAB_NAME || "HCM_ADMIN_CONSOLE_BOUNDARY_DATA",
Expand Down
1 change: 0 additions & 1 deletion utilities/project-factory/src/server/utils/genericUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ async function fullProcessFlowForNewEntry(newEntryResponse: any, generatedResour
request.body.generatedResource = finalResponse;
}
} catch (error: any) {
console.log(error, "11111")
handleGenerateError(newEntryResponse, generatedResource, error);
}
}
Expand Down

0 comments on commit 367284e

Please sign in to comment.