diff --git a/src/route/playlist.rs b/src/route/playlist.rs index eb87bf5..dd20e19 100644 --- a/src/route/playlist.rs +++ b/src/route/playlist.rs @@ -39,7 +39,7 @@ pub async fn playlists_route(u: User) -> FallibleApiResponse { } pub async fn recently_added_playlist() -> FallibleApiResponse { - let tracks = Track::find(doc! {}, Some(90), Some(doc! { "added": 1 })) + let tracks = Track::find(doc! {}, Some(90), Some(doc! { "date_added": -1 })) .await .unwrap(); Ok(json!(to_api(&tracks).await))