mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
moving db.close into the parent module
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(redisClient, module) {
|
||||
module.close = function() {
|
||||
redisClient.quit();
|
||||
};
|
||||
|
||||
module.searchIndex = function(key, content, id) {
|
||||
if (key === 'post') {
|
||||
module.postSearch.index(content, id);
|
||||
|
||||
Reference in New Issue
Block a user