Skip to content

Commit

Permalink
fixed 5 rate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Jan 28, 2025
1 parent 042a4d6 commit 685afb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ClientController.php
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ public function rate(Request $request)
} else {
$rate = new Rate();
}
if ($rt > 0 && $rt < 5) {
if ($rt > 0 && $rt <= 5) {
$rate->rater_type = Customer::class;
$rate->rater_id = auth('customer')->id();
$rate->rateable_type = $request->rateable_type;
Expand Down

0 comments on commit 685afb3

Please sign in to comment.