master
cody 5 months ago
parent 751c4f1429
commit 506c2c3471

@ -41,7 +41,7 @@ class User extends Authenticatable implements Auditable
{
$now = date('Y-m-d H:i:s');
$courseAppointmentTotals = CourseAppointmentTotal::where('user_id', $this->id)
->where('start_time', '<=', $now)
//->where('start_time', '<=', $now)
->where('end_time', '>=', $now)
->sum('total');
return $courseAppointmentTotals;

Loading…
Cancel
Save