mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
feat: closes #11902, ability to clear search history
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user