feat: closes #11902, ability to clear search history

This commit is contained in:
Barış Soner Uşaklı
2023-08-11 20:43:56 -04:00
parent e151ec86cc
commit 7a79fed828
5 changed files with 51 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ module.exports = function (module) {
module.scan = async function (params) {
let cursor = '0';
let returnData = [];
const seen = {};
const seen = Object.create(null);
do {
/* eslint-disable no-await-in-loop */
const res = await module.client.scan(cursor, 'MATCH', params.match, 'COUNT', 10000);