Skip to content

Commit

Permalink
Fix for the overage estimation on the usage page always being zero
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-aitken committed Dec 13, 2023
1 parent 4bd1786 commit 922520c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/webapp/app/presenters/OrgUsagePresenter.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ export class OrgUsagePresenter {

if (plans) {
const estimationResult = estimate({
usage: { currentRunCount: runsCount },
usage: { runs: runsCount },
plans: [plans.free, plans.paid],
});
runCostEstimation = estimationResult?.cost.runsCost;

const projectedEstimationResult = estimate({
usage: { currentRunCount: projectedRunsCount },
usage: { runs: projectedRunsCount },
plans: [plans.free, plans.paid],
});
projectedRunCostEstimation = projectedEstimationResult?.cost.runsCost;
Expand Down

0 comments on commit 922520c

Please sign in to comment.