Skip to content

Commit

Permalink
Fix #20, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Jul 22, 2021
1 parent ec6f17b commit 3679047
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2,098 deletions.
2 changes: 1 addition & 1 deletion lib/encryptedfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = class EncryptedField
"value": raw.toString('hex')
};
}
return this.getBlindIndexRaw(plaintext, name, key).toString('hex');
return (await this.getBlindIndexRaw(plaintext, name, key)).toString('hex');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/encryptedrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = class EncryptedRow
for (let column in this.blindIndexes) {
blindIndexes = this.blindIndexes[column];
if (typeof blindIndexes[indexName] !== 'undefined') {
return await this.calcBlindIndex(row, column, blindIndexes[indexName]);
return this.calcBlindIndex(row, column, blindIndexes[indexName]);
}
}

Expand All @@ -148,7 +148,7 @@ module.exports = class EncryptedRow
if (typeof(this.compoundIndexes[idx]) !== 'undefined') {
compoundIndex = this.compoundIndexes[idx];
if (compoundIndex.getName() === indexName) {
return await this.calcCompoundIndex(row, compoundIndex);
return this.calcCompoundIndex(row, compoundIndex);
}
}
}
Expand Down
Loading

0 comments on commit 3679047

Please sign in to comment.