From 93182aed7556e5a04f179930aad53f9df6afed94 Mon Sep 17 00:00:00 2001 From: nobswebdev Date: Mon, 31 Aug 2026 17:29:38 +0200 Subject: [PATCH] change coingecko and kraken rate fetch timeout config name --- .env.example | 4 ++-- backend/src/config/index.ts | 4 ++-- backend/src/config/validate.ts | 4 ++-- backend/src/types/Config.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index 3d85b87..06a8e8d 100644 --- a/.env.example +++ b/.env.example @@ -80,10 +80,10 @@ SIGNED_COOKIE_THEME_NAME=storefront_theme SIGNED_COOKIE_THEME_EXPIRES_IN_MS=31536000000 # 365 days COINGECKO_API_BASE_URL=https://api.coingecko.com/api/v3 -COINGECKO_XMR_RATE_FETCH_TIMEOUT_MS=5000 +COINGECKO_RATE_FETCH_TIMEOUT_MS=5000 KRAKEN_API_BASE_URL=https://api.kraken.com/0/public -KRAKEN_XMR_RATE_FETCH_TIMEOUT_MS=5000 +KRAKEN_RATE_FETCH_TIMEOUT_MS=5000 BASE64_ENCRYPTION_KEY="nyRya1KpYSQ+drpO132mkOEMUR+uq6K7tWvpMfppIME=" # Generate with: openssl rand -base64 32 diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index 56a5497..e6ae381 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -159,14 +159,14 @@ export const getDigitalStockAttachmentMulterConfig = (): MulterConfig => { export const getCoingeckoConfig = (): CoingeckoConfig => { return { apiBaseUrl: env('COINGECKO_API_BASE_URL'), - xmrRateFetchTimeoutMs: envInt('COINGECKO_XMR_RATE_FETCH_TIMEOUT_MS') + rateFetchTimeoutMs: envInt('COINGECKO_RATE_FETCH_TIMEOUT_MS') }; }; export const getKrakenConfig = (): KrakenConfig => { return { apiBaseUrl: env('KRAKEN_API_BASE_URL'), - xmrRateFetchTimeoutMs: envInt('KRAKEN_XMR_RATE_FETCH_TIMEOUT_MS') + rateFetchTimeoutMs: envInt('KRAKEN_RATE_FETCH_TIMEOUT_MS') }; }; diff --git a/backend/src/config/validate.ts b/backend/src/config/validate.ts index 6a4d07b..ec9d5ff 100644 --- a/backend/src/config/validate.ts +++ b/backend/src/config/validate.ts @@ -251,12 +251,12 @@ class EnvironmentVariables { @IsNotEmpty() @IsNumber() @Min(1) - KRAKEN_XMR_RATE_FETCH_TIMEOUT_MS: number; + KRAKEN_RATE_FETCH_TIMEOUT_MS: number; @IsNotEmpty() @IsNumber() @Min(1) - COINGECKO_XMR_RATE_FETCH_TIMEOUT_MS: number; + COINGECKO_RATE_FETCH_TIMEOUT_MS: number; @IsNotEmpty() @IsString() diff --git a/backend/src/types/Config.ts b/backend/src/types/Config.ts index cc9cc63..5dd2b58 100644 --- a/backend/src/types/Config.ts +++ b/backend/src/types/Config.ts @@ -84,12 +84,12 @@ export interface MulterConfig { export interface CoingeckoConfig { apiBaseUrl: string; - xmrRateFetchTimeoutMs: number; + rateFetchTimeoutMs: number; } export interface KrakenConfig { apiBaseUrl: string; - xmrRateFetchTimeoutMs: number; + rateFetchTimeoutMs: number; } export interface EncryptionConfig {