mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -52,7 +52,7 @@ pub async fn create_task(
|
|||||||
pub async fn get_task(task_id: String) -> Result<Task, Box<dyn std::error::Error + Send + Sync>> {
|
pub async fn get_task(task_id: String) -> Result<Task, Box<dyn std::error::Error + Send + Sync>> {
|
||||||
Ok(reqwest::Client::new()
|
Ok(reqwest::Client::new()
|
||||||
.get(format!(
|
.get(format!(
|
||||||
"{}/api/check_archive/{task_id}/",
|
"{}/api/check_archive/{task_id}",
|
||||||
&config::CONFIG.batch_downloader_url
|
&config::CONFIG.batch_downloader_url
|
||||||
))
|
))
|
||||||
.header("Authorization", &config::CONFIG.batch_downloader_api_key)
|
.header("Authorization", &config::CONFIG.batch_downloader_api_key)
|
||||||
|
|||||||
Reference in New Issue
Block a user