mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
filter releases that not public
This commit is contained in:
parent
6e30d97248
commit
c002deabaf
@ -7,7 +7,10 @@ export default async (req) => {
|
|||||||
|
|
||||||
const total_length = await MusicRelease.countDocuments(searchQuery)
|
const total_length = await MusicRelease.countDocuments(searchQuery)
|
||||||
|
|
||||||
let result = await MusicRelease.find(searchQuery)
|
let result = await MusicRelease.find({
|
||||||
|
...searchQuery,
|
||||||
|
public: true,
|
||||||
|
})
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.skip(trim)
|
.skip(trim)
|
||||||
.sort({ created_at: order === "desc" ? -1 : 1 })
|
.sort({ created_at: order === "desc" ? -1 : 1 })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user