Fix bug
This commit is contained in:
parent
caa8aee7a0
commit
9f81288fcc
48 changed files with 91 additions and 140 deletions
|
|
@ -63,8 +63,7 @@ async function byNative(res, rej, me, query, offset, max) {
|
|||
}, {
|
||||
name: new RegExp(escapedQuery)
|
||||
}]
|
||||
})
|
||||
.toArray();
|
||||
});
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(users.map(async user =>
|
||||
|
|
@ -106,8 +105,7 @@ async function byElasticsearch(res, rej, me, query, offset, max) {
|
|||
_id: {
|
||||
$in: hits
|
||||
}
|
||||
})
|
||||
.toArray();
|
||||
});
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(users.map(async user =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue