From 03b957f15c5670c7cfd91a4c6487134004353c82 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 12 Jun 2021 11:52:49 -0400 Subject: [PATCH] Pass through arg to recursive call --- services/gunDB/rpc/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/gunDB/rpc/index.js b/services/gunDB/rpc/index.js index a255e5c2..c33857cb 100644 --- a/services/gunDB/rpc/index.js +++ b/services/gunDB/rpc/index.js @@ -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) + ) ) }