mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 02:59:29 +00:00
Fixed phpunit tests
This commit is contained in:
parent
92cd645945
commit
710569daaf
6 changed files with 192 additions and 127 deletions
|
|
@ -467,11 +467,9 @@ class BulkInfoProviderImportController extends AbstractController
|
|||
|
||||
try {
|
||||
// Use the job's field mappings to perform the search
|
||||
$fieldMappings = $job->getFieldMappings();
|
||||
$fieldMappingDtos = $job->getFieldMappings();
|
||||
$prefetchDetails = $job->isPrefetchDetails();
|
||||
|
||||
$fieldMappingDtos = $this->convertFieldMappingsToDto($fieldMappings);
|
||||
|
||||
try {
|
||||
$searchResultsDto = $this->bulkService->performBulkSearch([$part], $fieldMappingDtos, $prefetchDetails);
|
||||
} catch (\Exception $searchException) {
|
||||
|
|
@ -542,8 +540,7 @@ class BulkInfoProviderImportController extends AbstractController
|
|||
}
|
||||
|
||||
try {
|
||||
$fieldMappings = $job->getFieldMappings();
|
||||
$fieldMappingDtos = $this->convertFieldMappingsToDto($fieldMappings);
|
||||
$fieldMappingDtos = $job->getFieldMappings();
|
||||
$prefetchDetails = $job->isPrefetchDetails();
|
||||
|
||||
// Process in batches to reduce memory usage for large operations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue