This commit is contained in:
JMARyA 2024-10-04 20:24:04 +02:00
parent e5a2dfaade
commit 268ab4cc76
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -102,7 +102,7 @@ pub async fn playlist_tracks_route(id: &str, u: User) -> FallibleApiResponse {
tracks.push(track); tracks.push(track);
} }
let tracks: Vec<Track> = sqlx::query_as("SELECT * FROM track WHERE id IN ANY($1)") let tracks: Vec<Track> = sqlx::query_as("SELECT * FROM track WHERE id = ANY($1)")
.bind(tracks) .bind(tracks)
.fetch_all(get_pg!()) .fetch_all(get_pg!())
.await .await