From 481d4d0c6da10464ebb8420322f68a8593391b30 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Thu, 14 Nov 2024 16:48:26 +0200 Subject: [PATCH] fix: fix the typos --- src/config/index.ts | 4 ++-- src/services/oci.service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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' },