diff --git a/src/config/index.ts b/src/config/index.ts index 55628e7..11db304 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -56,7 +56,7 @@ const envVarsSchema = Joi.object() REDIS_PORT: Joi.string().required().description('Redis port'), REDIS_PASSWORD: Joi.string().required().description('Reids password').allow(''), DISCOURSE_EXTRACTION_URL: Joi.string().required().description('Discourse extraction url'), - OCI_BACKEND_URl: Joi.string().required().description('Oci Backend url'), + OCI_BACKEND_URL: Joi.string().required().description('Oci Backend url'), }) .unknown(); @@ -159,5 +159,5 @@ export default { discourse: { extractionURL: envVars.DISCOURSE_EXTRACTION_URL, }, - ociBackendURL: envVars.OCI_BACKEND_URl, + ociBackendURL: envVars.OCI_BACKEND_URL, }; diff --git a/src/services/oci.service.ts b/src/services/oci.service.ts index f9c1259..f31f5ce 100644 --- a/src/services/oci.service.ts +++ b/src/services/oci.service.ts @@ -7,7 +7,7 @@ const logger = parentLogger.child({ module: 'OciService' }); async function getProfiles(address: string, chainId: number) { try { - console.log(`${config.ociBackendURL}/api/v1/oci/profiles/${chainId}/${address}`); + logger.debug(`${config.ociBackendURL}/oci/profiles/${chainId}/${address}`); const response = await fetch(`${config.ociBackendURL}/api/v1/oci/profiles/${chainId}/${address}`, { method: 'GET', headers: { 'Content-Type': 'application/json' },