fix: tests

This commit is contained in:
Baris Usakli
2019-03-15 16:21:15 -04:00
parent b48b6d75e5
commit 45d7e37ae8

View File

@@ -80,7 +80,7 @@ module.exports = function (redisClient, module) {
redisClient.hgetall(unCachedKeys[0], (err, data) => next(err, [data]));
}
},
function (data) {
function (data, next) {
unCachedKeys.forEach(function (key, i) {
cachedData[key] = data[i] || null;
cache.set(key, cachedData[key]);