mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Fix
This commit is contained in:
@@ -340,7 +340,7 @@ async fn send_archive_link(
|
||||
) -> BotHandlerInternal {
|
||||
let link = format!(
|
||||
"{}/api/download/{}",
|
||||
config::CONFIG.batch_downloader_url.clone(),
|
||||
config::CONFIG.public_batch_downloader_url.clone(),
|
||||
task.id
|
||||
);
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ pub struct Config {
|
||||
pub cache_server_api_key: String,
|
||||
|
||||
pub batch_downloader_url: String,
|
||||
pub public_batch_downloader_url: String,
|
||||
pub batch_downloader_api_key: String,
|
||||
|
||||
pub sentry_dsn: String,
|
||||
@@ -56,6 +57,7 @@ impl Config {
|
||||
cache_server_api_key: get_env("CACHE_SERVER_API_KEY"),
|
||||
|
||||
batch_downloader_url: get_env("BATCH_DOWNLOADER_URL"),
|
||||
public_batch_downloader_url: get_env("PUBLIC_BATCH_DOWNLOADER_URL"),
|
||||
batch_downloader_api_key: get_env("BATCH_DOWNLOADER_API_KEY"),
|
||||
|
||||
sentry_dsn: get_env("SENTRY_DSN"),
|
||||
|
||||
Reference in New Issue
Block a user