mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 17:52:15 +01:00
Added more imports
This commit is contained in:
@@ -16,13 +16,13 @@ class ImportService
|
||||
/**
|
||||
* @throws ImportException
|
||||
*/
|
||||
public function import(Organization $organization, string $importerType, string $data, array $options): ReportDto
|
||||
public function import(Organization $organization, string $importerType, string $data): ReportDto
|
||||
{
|
||||
/** @var ImporterContract $importer */
|
||||
$importer = app(ImporterProvider::class)->getImporter($importerType);
|
||||
$importer->init($organization);
|
||||
DB::transaction(function () use (&$importer, &$data, &$options, &$organization) {
|
||||
$importer->importData($data, $options);
|
||||
DB::transaction(function () use (&$importer, &$data) {
|
||||
$importer->importData($data);
|
||||
});
|
||||
|
||||
return $importer->getReport();
|
||||
|
||||
Reference in New Issue
Block a user