fix logic and tests, update docker CI file
This commit is contained in:
@@ -16,11 +16,11 @@ class AssignmentSectionService
|
||||
|
||||
return $this->classSection
|
||||
->newQuery()
|
||||
->whereIn('id', $sectionIds)
|
||||
->whereIn('class_section_id', $sectionIds)
|
||||
->get()
|
||||
->mapWithKeys(function ($section) {
|
||||
$name = $section->class_section_name ?? $section->section_name ?? $section->name ?? '';
|
||||
return [(int) $section->id => (string) $name];
|
||||
return [(int) $section->class_section_id => (string) $name];
|
||||
})
|
||||
->all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user