Added new status and made changes to song queue status code

This commit is contained in:
kdeng00
2025-06-05 20:41:52 -04:00
parent eb1f19a96e
commit 2b5b04aa3d
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -148,11 +148,12 @@ pub mod response {
pub mod status {
pub const PENDING: &str = "pending";
pub const READY: &str = "ready";
pub const PROCESSING: &str = "processing";
pub const DONE: &str = "done";
pub async fn is_valid(status: &str) -> bool {
status == PENDING || status == PROCESSING || status == DONE
status == PENDING || status == PROCESSING || status == DONE || status == READY
}
}
@@ -396,7 +397,7 @@ mod song_queue {
"#,
)
.bind(super::status::PROCESSING)
.bind(super::status::PENDING)
.bind(super::status::READY)
.fetch_one(pool)
.await
.map_err(|e| {