Skip to content

Commit

Permalink
Merge pull request #8 from leancodepl/fix/rating-inclusive
Browse files Browse the repository at this point in the history
Fix LowRatingUpperBoundInclusive handling
  • Loading branch information
lukaszgarstecki authored Dec 1, 2023
2 parents ad3f5cc + 17c32e0 commit 37a9e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task ExecuteAsync(HttpContext context, SubmitAppRating command)
)
);

if (command.Rating < appRatingReportsConfiguration.LowRatingUpperBoundInclusive)
if (command.Rating <= appRatingReportsConfiguration.LowRatingUpperBoundInclusive)
{
await publishEndpoint.Publish(
new LowRateSubmitted<TUserId>(userId, command.Rating, command.AdditionalComment),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private async Task EnsureLowRatingSubmittedEmailSent()
await App.Command.RunSuccessAsync(
new SubmitAppRating
{
Rating = 1.0,
Rating = 2.0,
AdditionalComment = new string('a', 200),
AppVersion = "1.23.456",
Platform = PlatformDTO.Android,
Expand Down

0 comments on commit 37a9e1a

Please sign in to comment.