mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
* switch to ioredis
also need this fix in redisearch:
redis-search.js:98
```
redisClient.multi(cmds).exec(function(err, ids) {
if (err) {
return callback(err);
}
var errRes = ids[resultIndex];
if (errRes[0]) {
return callback(errRes[0]);
}
callback(null, errRes[1]);
});
```
* dbsearch compatible with ioredis
* fixed dbsearch?
This commit is contained in:
@@ -29,6 +29,9 @@ module.exports = function (module) {
|
||||
if (!Array.isArray(key)) {
|
||||
key = [key];
|
||||
}
|
||||
if (!value.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
const batch = module.client.batch();
|
||||
key.forEach(k => batch.srem(String(k), value));
|
||||
|
||||
Reference in New Issue
Block a user