Skip to content

Commit

Permalink
Fix time promotions bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Sep 6, 2024
1 parent 690d65d commit b81b09b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecommerce/pricing/lib/pricing/promotions_calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ def initialize(start_time, end_time, discount)
end

def running?(timestamp)
(@start_time...@end_time).include?(timestamp)
(@start_time...@end_time).cover?(timestamp)
end

end
end
end

0 comments on commit b81b09b

Please sign in to comment.