diff --git a/server/scanner.js b/server/scanner.js index 3bcb34d..030f9db 100755 --- a/server/scanner.js +++ b/server/scanner.js @@ -238,7 +238,12 @@ function processBlock(items) { /* If this asset exists in this transaction block, push it into the results */ for (let i = 0; i < index; i++) { if (batch[i].hash == asset.hash) { - results.push(batch[i]); + results.push({ + id: batch[i].id, + hash: batch[i].hash, + path: batch[i].album.path, + filename: batch[i].filename + }); } } @@ -424,7 +429,7 @@ function processBlock(items) { console.warn("Continuing file processing."); }); }, { - concurrency: 1 + concurrency: 5 }); }).then(function() { console.log("Completed processing queue. Marking " + duplicates.length + " duplicates.");