fix: volume names in services

This commit is contained in:
Andras Bacsai 2023-10-03 13:14:11 +02:00
parent 8ff216e5fb
commit bd856f7f67
4 changed files with 6 additions and 6 deletions

View File

@ -318,8 +318,8 @@ public function parse(bool $isNew = false): Collection
]
);
} else if ($type->value() === 'volume') {
$slug = Str::slug($source, '-');
$name = "{$savedService->service->uuid}_{$slug}";
$slugWithoutUuid = Str::slug($source, '-');
$name = "{$savedService->service->uuid}_{$slugWithoutUuid}";
if (is_string($volume)) {
$source = Str::of($volume)->before(':');
$target = Str::of($volume)->after(':')->beforeLast(':');
@ -336,7 +336,7 @@ public function parse(bool $isNew = false): Collection
'resource_type' => get_class($savedService)
],
[
'name' => $name,
'name' => $slugWithoutUuid,
'mount_path' => $target,
'resource_id' => $savedService->id,
'resource_type' => get_class($savedService)

View File

@ -7,7 +7,7 @@
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'release' => '4.0.0-beta.60',
'release' => '4.0.0-beta.61',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.60';
return '4.0.0-beta.61';

View File

@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
"version": "4.0.0-beta.60"
"version": "4.0.0-beta.61"
}
}
}