Skip to content

Commit

Permalink
Removing the equal sign in the comparison for the scratch accounts si…
Browse files Browse the repository at this point in the history
…nce it errors out (#218)
  • Loading branch information
sylviamclaughlin authored Jan 9, 2024
1 parent 0a5ffa4 commit a468f46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async function getScratchAccountsExceedingThreshold() {
const yesterday = new Date(today.setDate(today.getDate() - 1)).toISOString().split("T")[0];

// do this calculation only if yesterday is greater than or equal to the first day of the month. This is needed since we go back 2 days to calculate the difference in cost.
if (yesterday >= firstDayOfMonth) {
if (yesterday > firstDayOfMonth) {
// construct params for cost explorer
const paramsYesterday = {
Granularity: "MONTHLY",
Expand Down

0 comments on commit a468f46

Please sign in to comment.