fix
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
JMARyA 2024-12-14 23:48:32 +01:00
parent 74de914688
commit 09beb0bcc2
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -97,7 +97,7 @@ impl Library {
pub async fn get_video_by_id(&self, id: &str) -> Option<Video> {
sqlx::query_as("SELECT * FROM videos WHERE id = $1")
.bind(uuid::Uuid::from_str(id).unwrap())
.bind(uuid::Uuid::from_str(id).unwrap_or(uuid::Uuid::nil()))
.fetch_optional(&self.conn)
.await
.unwrap()