Skip to content

Commit

Permalink
Merge pull request #94 from tago-io/fix/networks-genericendpoint
Browse files Browse the repository at this point in the history
fixing base64 converter
  • Loading branch information
FabianoEger authored Nov 13, 2024
2 parents d4ed580 + ac24f11 commit a1dc300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoders/network/generic-endpoint/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (Array.isArray(payload)) {
payload_base64 = payload_base64 && payload_base64.value === "base64" ? true : false;

if (payload_base64) {
const raw_payload = payload.find(x => x.variable === 'payload');
const raw_payload = new_payload.find(x => x.variable === 'payload');
if (raw_payload) {
raw_payload.value = Buffer.from(raw_payload.value, 'base64').toString('hex');
}
Expand Down

0 comments on commit a1dc300

Please sign in to comment.