fixed 5 rate bug

master
A1Gard 2 months ago
parent 9cf561d163
commit 8f3b7cf402

@ -846,7 +846,7 @@ class ClientController extends Controller
} else { } else {
$rate = new Rate(); $rate = new Rate();
} }
if ($rt > 0 && $rt < 5) { if ($rt > 0 && $rt <= 5) {
$rate->rater_type = Customer::class; $rate->rater_type = Customer::class;
$rate->rater_id = auth('customer')->id(); $rate->rater_id = auth('customer')->id();
$rate->rateable_type = $request->rateable_type; $rate->rateable_type = $request->rateable_type;

Loading…
Cancel
Save