Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish-egov authored Jul 22, 2024
1 parent ac0cc06 commit 3c5f3dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions utilities/project-factory/src/server/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if (!HOST) {
}


// const getDBSchemaName = (dbSchema = "") => {
// return dbSchema ? (dbSchema == "egov" ? "public" : dbSchema) : "public";
// }
const getDBSchemaName = (dbSchema = "") => {
return dbSchema ? (dbSchema == "egov" ? "public" : dbSchema) : "public";
}
// Configuration object containing various environment variables
const config = {
isCallGenerateWhenDeliveryConditionsDiffer:true,
Expand Down Expand Up @@ -71,10 +71,10 @@ const config = {
DB_NAME: process.env.DB_NAME || "postgres",
DB_PASSWORD: process.env.DB_PASSWORD || "postgres",
DB_PORT: process.env.DB_PORT || "5432",
DB_CAMPAIGN_DETAILS_TABLE_NAME: `health.eg_cm_campaign_details`,
DB_CAMPAIGN_PROCESS_TABLE_NAME: `health.eg_cm_campaign_process`,
DB_GENERATED_RESOURCE_DETAILS_TABLE_NAME: `health.eg_cm_generated_resource_details`,
DB_RESOURCE_DETAILS_TABLE_NAME: `health.eg_cm_resource_details`
DB_CAMPAIGN_DETAILS_TABLE_NAME: `${getDBSchemaName(process.env.DB_SCHEMA)}.eg_cm_campaign_details`,
DB_CAMPAIGN_PROCESS_TABLE_NAME: `${getDBSchemaName(process.env.DB_SCHEMA)}.eg_cm_campaign_process`,
DB_GENERATED_RESOURCE_DETAILS_TABLE_NAME: `${getDBSchemaName(process.env.DB_SCHEMA)}.eg_cm_generated_resource_details`,
DB_RESOURCE_DETAILS_TABLE_NAME: `${getDBSchemaName(process.env.DB_SCHEMA)}.eg_cm_resource_details`
},
// Application configuration
app: {
Expand All @@ -97,7 +97,7 @@ const config = {
host: {
serverHost: HOST,
// Kafka broker host
KAFKA_BROKER_HOST: process.env.KAFKA_BROKER_HOST || "localhost:9092",
KAFKA_BROKER_HOST: process.env.KAFKA_BROKER_HOST || "kafka-v2.kafka-cluster:9092",
redisHost: process.env.REDIS_HOST || "localhost",
mdms: process.env.EGOV_MDMS_HOST || "https://unified-dev.digit.org/",
mdmsV2: process.env.EGOV_MDMS_V2_HOST || "https://unified-dev.digit.org/",
Expand Down

0 comments on commit 3c5f3dc

Please sign in to comment.