mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
fix accidental object reference bug
This commit is contained in:
@@ -47,10 +47,11 @@ export default class Searcher{
|
||||
|
||||
async findAllMatches(query, options){
|
||||
try{
|
||||
let optionsValue = structuredClone(options)
|
||||
var startTime = process.hrtime();
|
||||
options.fields.push('hidden')
|
||||
optionsValue.fields.push('hidden')
|
||||
debugPrint(options)
|
||||
let results = this.miniSearch.search(query, options)
|
||||
let results = this.miniSearch.search(query, optionsValue)
|
||||
var elapsed = this.parseHrtimeToSeconds(process.hrtime(startTime));
|
||||
return {
|
||||
items: results,
|
||||
|
||||
Reference in New Issue
Block a user