partial update fix redirect and add note in public, quick and pbg data
This commit is contained in:
@@ -25,15 +25,16 @@ class BigDataResumeController extends Controller
|
||||
{
|
||||
try{
|
||||
$filterDate = $request->get("filterByDate");
|
||||
$type = $request->get("type");
|
||||
$type = trim($request->get("type"));
|
||||
|
||||
if (!$filterDate || $filterDate === "latest") {
|
||||
$big_data_resume = BigdataResume::findOrFail(168);
|
||||
$big_data_resume = BigdataResume::where('resume_type', $type)->latest()->first();
|
||||
if (!$big_data_resume) {
|
||||
return $this->response_empty_resume();
|
||||
}
|
||||
} else {
|
||||
$big_data_resume = BigdataResume::whereDate('created_at', $filterDate)
|
||||
->where('resume_type', $type)
|
||||
->orderBy('id', 'desc')
|
||||
->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user