Pass through arg to recursive call

This commit is contained in:
Daniel Lugo 2021-06-12 11:52:49 -04:00
parent 33f889c831
commit 03b957f15c

View file

@ -33,7 +33,9 @@ const PATH_SEPARATOR = '>'
const deepDecryptIfNeeded = async (value, publicKey, epubForDecryption) => {
if (Schema.isObj(value)) {
return Bluebird.props(
mapValues(value, o => deepDecryptIfNeeded(o, publicKey))
mapValues(value, o =>
deepDecryptIfNeeded(o, publicKey, epubForDecryption)
)
)
}