mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-06-15 13:32:43 +01:00
Fixed storage env
This commit is contained in:
@@ -24,7 +24,8 @@ class ImportService
|
||||
/** @var ImporterContract $importer */
|
||||
$importer = app(ImporterProvider::class)->getImporter($importerType);
|
||||
$importer->init($organization);
|
||||
Storage::disk('s3')->put('import/'.Carbon::now()->toDateString().'-'.$organization->getKey().'-'.Str::uuid(), $data);
|
||||
Storage::disk(config('filesystems.default'))
|
||||
->put('import/'.Carbon::now()->toDateString().'-'.$organization->getKey().'-'.Str::uuid(), $data);
|
||||
|
||||
DB::transaction(function () use (&$importer, &$data) {
|
||||
$importer->importData($data);
|
||||
|
||||
@@ -77,6 +77,6 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'profile_photo_disk' => env('PROFILE_PHOTO_DISK', 's3'),
|
||||
'profile_photo_disk' => env('PROFILE_PHOTO_DISK', env('PUBLIC_FILESYSTEM_DISK', 'public')),
|
||||
|
||||
];
|
||||
|
||||
@@ -67,6 +67,11 @@ return [
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'stderr_daily' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => ['stderr', 'daily'],
|
||||
],
|
||||
|
||||
'stack_production' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => ['stderr', 'sentry'],
|
||||
|
||||
@@ -17,7 +17,7 @@ class ImportServiceTest extends TestCase
|
||||
public function test_import_gets_importer_from_provider_runs_importer_and_returns_report(): void
|
||||
{
|
||||
// Arrange
|
||||
Storage::fake('s3');
|
||||
Storage::fake(config('filesystems.default'));
|
||||
$organization = Organization::factory()->create();
|
||||
$data = file_get_contents(storage_path('tests/toggl_time_entries_import_test_1.csv'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user