fix code
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace App\Services\CMMS;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
@@ -54,10 +54,12 @@ class DailyMovingMachinesService
|
||||
|
||||
private function makeInputParameters(): string
|
||||
{
|
||||
$day = Carbon::yesterday()->toDateString();
|
||||
|
||||
return json_encode([
|
||||
"username" => $this->username,
|
||||
"password" => $this->password,
|
||||
"day" => today(),
|
||||
"day" => $day,
|
||||
"minMileage" => 10,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace App\Services\Cartables\Mission;
|
||||
|
||||
use App\Facades\DataTable\DataTableFacade;
|
||||
use App\Models\AssignmentFails;
|
||||
use App\Models\MissionViolation;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class DailyMoveMachineService
|
||||
@@ -11,7 +11,7 @@ class DailyMoveMachineService
|
||||
public function dataTable(Request $request)
|
||||
{
|
||||
return DataTableFacade::run(
|
||||
AssignmentFails::query(),
|
||||
MissionViolation::query(),
|
||||
$request,
|
||||
allowedFilters: ['*'],
|
||||
allowedSortings: ['*'],
|
||||
|
||||
Reference in New Issue
Block a user