Commit 0e50ac01 authored by Tristan Cavelier's avatar Tristan Cavelier

replicatestorage action called with wrong parameters - fixed

parent 8bc2040b
...@@ -459,7 +459,10 @@ ...@@ -459,7 +459,10 @@
function runDocumentMetadataRound(documents, metadata, action, coef) { function runDocumentMetadataRound(documents, metadata, action, coef) {
var i, res, winners = [0]; var i, res, winners = [0];
for (i = 1; i < documents.length; i += 1) { for (i = 1; i < documents.length; i += 1) {
res = actions[action](documents[winners[0]][0], documents[i][0]); res = actions[action](
documents[winners[0]][0][metadata],
documents[i][0][metadata]
);
if (res === 0) { if (res === 0) {
winners[winners.length] = i; winners[winners.length] = i;
} else if (res < 0) { } else if (res < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment