From bd8d0b407ee83c24bcaf90c47eace7f146c62902 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 17 Aug 2024 01:01:34 +0200 Subject: [PATCH] fix --- src/route/playlist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))