misc.search: Array.from sucks
This commit is contained in:
parent
73658b5be1
commit
942de91a68
1 changed files with 1 additions and 1 deletions
|
@ -574,7 +574,7 @@ search.callback = async function (msg, line, args, {results = 2}) {
|
|||
(res) => res.json()
|
||||
);
|
||||
delete res.results_source;
|
||||
const searchResults = Array.from(res)
|
||||
const searchResults = Object.values(res)
|
||||
.filter((result) => !("did_you_mean" in result))
|
||||
.splice(0, Number(results));
|
||||
|
||||
|
|
Loading…
Reference in a new issue