From 3d783d6b0c7fcaa08ede86ce9db7fc1f736c3551 Mon Sep 17 00:00:00 2001 From: Alexandru Ionut Budisteanu Date: Sat, 23 Oct 2021 22:44:33 +0300 Subject: [PATCH] more fixes for satoshmin db --- src/common/satoshmindb/Interface-SatoshminDB.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/satoshmindb/Interface-SatoshminDB.js b/src/common/satoshmindb/Interface-SatoshminDB.js index 6cde93a2b..04cef6a83 100644 --- a/src/common/satoshmindb/Interface-SatoshminDB.js +++ b/src/common/satoshmindb/Interface-SatoshminDB.js @@ -55,7 +55,7 @@ class InterfaceSatoshminDB { async _getDocument(key) { try { - let response = await this.db.get(key, {attachments: true}); + let response = await this.db.get(key, {attachments: true, binary: true }); if (!response ) return null; if ( !response._attachments ) return response.value; @@ -78,7 +78,7 @@ class InterfaceSatoshminDB { let _rev, force try{ - let response = await this.db.get(key, {attachments: true}); + let response = await this.db.get(key); if (response){ _rev = response._rev force = true