Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -36,9 +36,9 @@ class LivechatController extends Controller
|
||||
}
|
||||
|
||||
if ($endDate) {
|
||||
$endDate = date('Y-m-d', strtotime($endDate . ' +1 day'));
|
||||
$livechat = $livechat->where('dCreateOn', '<', $endDate);
|
||||
}
|
||||
|
||||
$livechat = $livechat->latest()->paginate(15);
|
||||
|
||||
return response()->json(Helper::paginateResources(LivechatResource::collection($livechat)));
|
||||
@@ -71,6 +71,7 @@ class LivechatController extends Controller
|
||||
$query->where('dCreateOn', '>=', $startDate);
|
||||
}
|
||||
if ($endDate) {
|
||||
$endDate = date('Y-m-d', strtotime($endDate . ' +1 day'));
|
||||
$query->where('dCreateOn', '<', $endDate);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user