Skip to content

Commit

Permalink
more fixes for satoshmin db
Browse files Browse the repository at this point in the history
  • Loading branch information
ibudisteanu committed Oct 23, 2021
1 parent 16cc050 commit 3d783d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/satoshmindb/Interface-SatoshminDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 3d783d6

Please sign in to comment.