diff --git a/Cargo.lock b/Cargo.lock index 4841996a..058ad7a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1112,7 +1112,7 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "ffplayout" -version = "0.20.0-beta1" +version = "0.20.0-beta2" dependencies = [ "chrono", "clap", @@ -1134,7 +1134,7 @@ dependencies = [ [[package]] name = "ffplayout-api" -version = "0.20.0-beta1" +version = "0.20.0-beta2" dependencies = [ "actix-files", "actix-multipart", @@ -1167,7 +1167,7 @@ dependencies = [ [[package]] name = "ffplayout-lib" -version = "0.20.0-beta1" +version = "0.20.0-beta2" dependencies = [ "chrono", "crossbeam-channel", @@ -3126,7 +3126,7 @@ dependencies = [ [[package]] name = "tests" -version = "0.20.0-beta1" +version = "0.20.0-beta2" dependencies = [ "chrono", "crossbeam-channel", diff --git a/Cargo.toml b/Cargo.toml index d7f67e58..e0fb31b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["ffplayout-api", "ffplayout-engine", "tests"] resolver = "2" [workspace.package] -version = "0.20.0-beta1" +version = "0.20.0-beta2" license = "GPL-3.0" repository = "https://github.com/ffplayout/ffplayout" authors = ["Jonathan Baecker "] diff --git a/ffplayout-api/src/db/handles.rs b/ffplayout-api/src/db/handles.rs index 9d62eeea..70de1123 100644 --- a/ffplayout-api/src/db/handles.rs +++ b/ffplayout-api/src/db/handles.rs @@ -82,6 +82,8 @@ async fn create_schema(conn: &Pool) -> Result) -> Result<&'static str, Box> { let db_path = db_path()?; + println!("--- db_path: {db_path:?}"); + if !Sqlite::database_exists(db_path).await.unwrap_or(false) { Sqlite::create_database(db_path).await.unwrap(); diff --git a/ffplayout-api/src/utils/mod.rs b/ffplayout-api/src/utils/mod.rs index 3c456ee2..2bb38692 100644 --- a/ffplayout-api/src/utils/mod.rs +++ b/ffplayout-api/src/utils/mod.rs @@ -88,11 +88,7 @@ pub fn db_path() -> Result<&'static str, Box> { db_path = "./assets/ffplayout.db"; } - if Path::new(db_path).is_file() { - return Ok(db_path); - } - - Err(format!("DB path {db_path} not exists!").into()) + Ok(db_path) } pub async fn run_args(mut args: Args) -> Result<(), i32> {