diff --git a/apps/api/src/config/schema/env.ts b/apps/api/src/config/schema/env.ts index 3571192..628a5e8 100644 --- a/apps/api/src/config/schema/env.ts +++ b/apps/api/src/config/schema/env.ts @@ -23,7 +23,7 @@ const envSchema = z.object({ .string() .transform((val) => Number.parseInt(val, 10)) .default('6379'), - TELEGRAM_SERVICE_URL_SEND_MESSAGE: z.string(), + TELEGRAM_URL_SEND_AUTH_MESSAGE: z.string(), }); export default envSchema; diff --git a/apps/api/src/ldap-tfa/ldap-tfa.controller.ts b/apps/api/src/ldap-tfa/ldap-tfa.controller.ts index b3e78ab..f7e1d9c 100644 --- a/apps/api/src/ldap-tfa/ldap-tfa.controller.ts +++ b/apps/api/src/ldap-tfa/ldap-tfa.controller.ts @@ -66,7 +66,7 @@ export class LdapTfaController extends LdapController { this.cacheManager.set(authId, user); return axios - .get(env.TELEGRAM_SERVICE_URL_SEND_MESSAGE, { + .get(env.TELEGRAM_URL_SEND_AUTH_MESSAGE, { params: { authId, employeeID, diff --git a/docker-compose.yml b/docker-compose.yml index 9c5ee6a..116d869 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,7 @@ services: - COOKIE_TOKEN_MAX_AGE=${COOKIE_TOKEN_MAX_AGE} - REDIS_HOST=redis - MONGO_HOST=mongo + - TELEGRAM_URL_SEND_AUTH_MESSAGE=${TELEGRAM_URL_SEND_AUTH_MESSAGE} restart: always networks: - auth_network