Silent %!s(int64=6) %!d(string=hai) anos
pai
achega
0eac8b5c58
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      app/Models/Student.php

+ 0 - 1
app/Models/Student.php

xqd
@@ -82,7 +82,6 @@ class Student extends Model
         $this_week_begin = $today->toDateTimeString();
 
         return RemarkDetail::where([
-            ['student_id', '=', $this['id']],
             ['remark_id', '=', $remark['id']],
             ['created_at', '>=', $this_week_begin],
         ])->get()->avg('score');