Saving code
pr CI / Test Suite (pull_request) Failing after 3m10s

This commit is contained in:
2026-08-13 11:12:44 -04:00
parent 39c9e88d00
commit db8e5458ca
2 changed files with 66 additions and 11 deletions
+16
View File
@@ -25,6 +25,22 @@ pub async fn insert(
}
}
pub async fn update_file_key(pool: &sqlx::PgPool, id: &uuid::Uuid, file_key: &str) -> Result<(), sqlx::Error> {
match sqlx::query(
r#"
UPDATE "songQueueData" SET file_key = $1 WHERE id = $2;
"#,
)
.bind(file_key)
.bind(id)
.execute(pool)
.await
{
Ok(_row) => Ok(()),
Err(_) => Err(sqlx::Error::RowNotFound),
}
}
pub async fn get(
pool: &sqlx::PgPool,
id: &uuid::Uuid,