Skip to content

Commit

Permalink
fix get song
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Fahle committed Jun 9, 2023
1 parent 669beae commit f254387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Song {
}

pub async fn get_song(id: String, pool: &Pool<MySql>) -> Result<Self, sqlx::Error> {
let song = sqlx::query_as::<MySql, Self>("SELECT * FROM song_data WHERE UUID = ?")
let song = sqlx::query_as::<MySql, Self>("SELECT * FROM song_data WHERE uuid = ?")
.bind(id)
.fetch_one(pool)
.await?;
Expand Down

0 comments on commit f254387

Please sign in to comment.