update: rebuild traffic log page

This commit is contained in:
tokumeikoi
2022-01-05 23:41:06 +08:00
parent 1716f2f6ca
commit da51d267e2
7 changed files with 15 additions and 7 deletions

View File

@ -38,7 +38,7 @@ class ServerController extends Controller
DB::raw('sum(d) as d'),
'log_at',
'user_id',
DB::raw('avg(rate) as rate'),
DB::raw('avg(rate) as rate')
])
->where('user_id', $request->session()->get('id'))
->where('log_at', '>=', strtotime(date('Y-m-1')))