Fix bug
This commit is contained in:
parent
caa8aee7a0
commit
9f81288fcc
48 changed files with 91 additions and 140 deletions
|
|
@ -34,13 +34,12 @@ module.exports = (params, user) =>
|
|||
const history = await History
|
||||
.find({
|
||||
user_id: user._id
|
||||
}, {}, {
|
||||
}, {
|
||||
limit: limit,
|
||||
sort: {
|
||||
updated_at: -1
|
||||
}
|
||||
})
|
||||
.toArray();
|
||||
});
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(history.map(async h =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue