Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix: wrong handle on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-DucPhung committed Jan 22, 2024
1 parent d5df002 commit c0835b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ public Map<String, List<Object>> getOffChainMetadata(MetadataBolnisi metadataBol
metadataBolnisi.setWineryData(null);
}
})
.doOnError(throwable -> {
.onErrorComplete(throwable -> {
log.error("Error while getting bolnisi off-chain metadata", throwable);
metadataBolnisi.setExternalApiAvailable(false);
metadataBolnisi.setCidVerified(false);
metadataBolnisi.setWineryData(null);
return true;
})
.block();
}
Expand Down

0 comments on commit c0835b6

Please sign in to comment.