Skip to content

Commit

Permalink
fixing base64 converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddyminu committed Nov 13, 2024
1 parent 30a8f1d commit ac24f11
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 ac24f11

Please sign in to comment.