Pass through arg to recursive call
This commit is contained in:
parent
33f889c831
commit
03b957f15c
1 changed files with 3 additions and 1 deletions
|
|
@ -33,7 +33,9 @@ const PATH_SEPARATOR = '>'
|
||||||
const deepDecryptIfNeeded = async (value, publicKey, epubForDecryption) => {
|
const deepDecryptIfNeeded = async (value, publicKey, epubForDecryption) => {
|
||||||
if (Schema.isObj(value)) {
|
if (Schema.isObj(value)) {
|
||||||
return Bluebird.props(
|
return Bluebird.props(
|
||||||
mapValues(value, o => deepDecryptIfNeeded(o, publicKey))
|
mapValues(value, o =>
|
||||||
|
deepDecryptIfNeeded(o, publicKey, epubForDecryption)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue