fix(api): fix issue with opening CSV before conversion is complete

This commit is contained in:
Mariano Riefolo 2024-09-06 14:52:08 +02:00
parent bb97034d14
commit 631b00db0b

View File

@ -92,7 +92,8 @@ async fn download_pdf(id: u8) -> Result<String, Error> {
.arg(&pdf_path) .arg(&pdf_path)
.arg(&csv_path) .arg(&csv_path)
.spawn() .spawn()
.expect("Failed to generate csv file"); .expect("Failed to generate csv file")
.wait()?;
} }
Ok(csv_path) Ok(csv_path)