Fix bug
This commit is contained in:
@@ -54,11 +54,10 @@ module.exports = (params) =>
|
||||
|
||||
// Issue query
|
||||
const posts = await Post
|
||||
.find(query, {}, {
|
||||
.find(query, {
|
||||
limit: limit,
|
||||
sort: sort
|
||||
})
|
||||
.toArray();
|
||||
});
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(posts.map(async post => await serialize(post))));
|
||||
|
Reference in New Issue
Block a user