fix
This commit is contained in:
parent
f7dbb14a6b
commit
bd8d0b407e
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ pub async fn playlists_route(u: User) -> FallibleApiResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn recently_added_playlist() -> 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
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
Ok(json!(to_api(&tracks).await))
|
Ok(json!(to_api(&tracks).await))
|
||||||
|
|
Loading…
Reference in a new issue