fix gitlab tests
This commit is contained in:
@@ -7,19 +7,12 @@ use App\Models\ClassSection;
|
||||
class ClassPreparationService
|
||||
{
|
||||
private ClassPreparationContextService $context;
|
||||
|
||||
private ClassPreparationRosterService $roster;
|
||||
|
||||
private ClassPreparationInventoryService $inventory;
|
||||
|
||||
private ClassPreparationCalculatorService $calculator;
|
||||
|
||||
private ClassPreparationAdjustmentService $adjustments;
|
||||
|
||||
private ClassPreparationLogService $logs;
|
||||
|
||||
private ClassPreparationAdjustmentWriterService $adjustmentWriter;
|
||||
|
||||
private ClassPreparationPrintService $printService;
|
||||
|
||||
public function __construct(
|
||||
@@ -73,14 +66,14 @@ class ClassPreparationService
|
||||
$hasChanged = $this->logs->hasPrepChanged($baseItems, $oldPrep);
|
||||
|
||||
$results[] = [
|
||||
'class_section' => $className,
|
||||
'class_section' => $className,
|
||||
'class_section_id' => $classSectionId,
|
||||
'student_count' => $studentCount,
|
||||
'class_level' => $classLevel,
|
||||
'prep_items' => $baseItems,
|
||||
'needs_print' => $hasChanged,
|
||||
'last_printed_at' => $oldSnap?->created_at,
|
||||
'adjustments' => $adjMap,
|
||||
'student_count' => $studentCount,
|
||||
'class_level' => $classLevel,
|
||||
'prep_items' => $baseItems,
|
||||
'needs_print' => $hasChanged,
|
||||
'last_printed_at' => $oldSnap?->created_at,
|
||||
'adjustments' => $adjMap,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -146,7 +139,6 @@ class ClassPreparationService
|
||||
if (function_exists('utc_now')) {
|
||||
return (string) utc_now();
|
||||
}
|
||||
|
||||
return now('UTC')->toDateTimeString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user