Skip to content

Commit

Permalink
Use map from lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Mar 22, 2023
1 parent c37d0bd commit 22e1079
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export function verifySignOevDataRequest(requestBody: ProcessSignOevDataRequestB
const beaconIds = beacons.map((beacon) => beacon.beaconId);
// We are computing both update value and data feed ID in Airnode to prevent spoofing the signature.
const dataFeedId = beaconIds.length === 1 ? beaconIds[0] : deriveBeaconSetId(beaconIds);
const timestamp = calculateUpdateTimestamp(decodedBeacons.map((beacon) => beacon.signedData.timestamp));
const timestamp = calculateUpdateTimestamp(map(decodedBeacons, 'signedData.timestamp'));
const updateValue = calculateMedian(map(decodedBeacons, 'decodedValue'));

// Derive the update hash during validation, because there can be an error during the encoding. We want to respond
Expand Down

0 comments on commit 22e1079

Please sign in to comment.