This commit is contained in:
JMARyA 2024-08-17 01:01:34 +02:00
parent f7dbb14a6b
commit bd8d0b407e
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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))