Fix bug
This commit is contained in:
parent
caa8aee7a0
commit
9f81288fcc
48 changed files with 91 additions and 140 deletions
|
@ -73,11 +73,10 @@ module.exports = (params, user) =>
|
|||
|
||||
// Issue query
|
||||
const reposts = await Post
|
||||
.find(query, {}, {
|
||||
.find(query, {
|
||||
limit: limit,
|
||||
sort: sort
|
||||
})
|
||||
.toArray();
|
||||
});
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(reposts.map(async post =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue