Browse Source

fix(command): where company_id

pull/1/head
farhantock 7 months ago
parent
commit
444d48eaf6
  1. 4
      app/Console/Commands/ScheduleHealth.php

4
app/Console/Commands/ScheduleHealth.php

@ -42,10 +42,10 @@ class ScheduleHealth extends Command
public function handle() public function handle()
{ {
$projects = Project::whereNull('deleted_at')->get(); $projects = Project::where('company_id', 5)->get();
$totalProjects = $projects->count(); $totalProjects = $projects->count();
$updatedProjects = []; $updatedProjects = [];
Log::info($totalProjects);
foreach ($projects as $index => $project) { foreach ($projects as $index => $project) {
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); $project->scurve = MasterFunctionsHelper::getSCurve($project->id);

Loading…
Cancel
Save