Fixed import

This commit is contained in:
Constantin Graf
2024-05-21 22:43:17 +02:00
parent 5a8dc60f53
commit 05e865ef41
5 changed files with 26 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Service\Import\Importers;
use App\Enums\Role;
use App\Models\TimeEntry;
use Exception;
use Illuminate\Support\Carbon;
@@ -59,6 +60,8 @@ class ClockifyTimeEntriesImporter extends DefaultImporter
$memberId = $this->memberImportHelper->getKey([
'user_id' => $userId,
'organization_id' => $this->organization->getKey(),
], [
'role' => Role::Placeholder->value,
]);
$clientId = null;
if ($record['Client'] !== '') {