Added icarus_envy (#140)

* Added icarus_envy

* Commenting out dotenvy crate

* Removing environment and keys modules

* Replacing with icarus_envy

* Making changes to test code

* Removing lingering references in tests

* Test fix

* Test fix

* Another test fix

* Rust formatting

* Removing commented crate

* Using v0.2.0 version of icarus_envy
This commit was merged in pull request #140.
This commit is contained in:
KD
2025-06-01 20:20:33 -04:00
committed by GitHub
parent 95688cccfa
commit bb766acf4e
7 changed files with 31 additions and 51 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ pub mod endpoint {
let song_id = payload.song_id;
match crate::callers::song::song_db::get_song(&pool, &song_id).await {
Ok(song) => {
let directory = crate::environment::get_root_directory().await.unwrap();
let directory = icarus_envy::environment::get_root_directory().await;
let dir = std::path::Path::new(&directory);
// TODO: Make this random and the file extension should not be hard coded
+1 -1
View File
@@ -770,7 +770,7 @@ pub mod endpoint {
let mut song = payload.to_song();
song.filename =
song.generate_filename(icarus_models::types::MusicTypes::FlacExtension, true);
song.directory = crate::environment::get_root_directory().await.unwrap();
song.directory = icarus_envy::environment::get_root_directory().await;
match song_queue::get_data(&pool, &payload.song_queue_id).await {
Ok(data) => {