fix accidental object reference bug

This commit is contained in:
Alexandra
2024-10-25 06:07:35 -06:00
parent 9387dfeefd
commit e303cab509

View File

@@ -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,