|
|
@ -24,9 +24,7 @@ exports.processSortedSet = function (setKey, process, options, callback) {
|
|
|
|
// Progress bar handling (upgrade scripts)
|
|
|
|
// Progress bar handling (upgrade scripts)
|
|
|
|
if (options.progress) {
|
|
|
|
if (options.progress) {
|
|
|
|
db.sortedSetCard(setKey, function (err, total) {
|
|
|
|
db.sortedSetCard(setKey, function (err, total) {
|
|
|
|
if (err) {
|
|
|
|
if (!err) {
|
|
|
|
// Unable to get total, do nothing.
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
options.progress.total = total;
|
|
|
|
options.progress.total = total;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|