Skip to content

Commit

Permalink
FIxed error while trying to retrieve throughput of container of local…
Browse files Browse the repository at this point in the history
… instance with old API (#21)
  • Loading branch information
Vitalii4as authored Jan 31, 2023
1 parent 022119f commit f859133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reverse_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,13 +571,13 @@ function getOfferProps(offer) {
if (isAutopilotOn) {
return {
autopilot: true,
throughput: offer.content.offerAutopilotSettings.maximumTierThroughput,
throughput: _.get(offer, 'content.offerAutopilotSettings.maximumTierThroughput', ''),
capacityMode: 'Provisioned throughput',
};
}
return {
autopilot: false,
throughput: offer ? offer.content.offerThroughput : '',
throughput: _.get(offer, 'content.offerThroughput', ''),
capacityMode: 'Provisioned throughput',
};
}
Expand Down

0 comments on commit f859133

Please sign in to comment.