sort by creatrion date

This commit is contained in:
SrGooglo 2023-07-03 15:47:29 +00:00
parent dfb0e46313
commit 1938916e56

View File

@ -24,6 +24,7 @@ export default async (req, res) => {
}
let playlists = await Playlist.find(searchQuery)
.sort({ created_at: -1 })
.catch((err) => false)
//.limit(limit)
//.skip(offset)