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
lukaszgarstecki authored Dec 1, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents ad3f5cc + 17c32e0 commit 37a9e1a
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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),
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 37a9e1a

Please sign in to comment.