- fixed setup wizard

- fixed oasis UserAccountTest.php
This commit is contained in:
Peter Papp
2021-04-06 10:10:38 +02:00
parent 737adfa91a
commit 7cefcf8dab
5 changed files with 15 additions and 146 deletions
@@ -418,7 +418,7 @@ class SetupWizardController extends Controller
$user
->settings()
->create([
'storage_capacity' => get_setting('storage_default'),
'storage_capacity' => get_setting('storage_default') ?? 5,
'avatar' => store_avatar($request, 'avatar'),
'name' => $request->name,
]);
+1 -1
View File
@@ -53,7 +53,7 @@ class UserResource extends JsonResource
'timezone' => $this->settings->timezone,
// OasisDrive
'payment_activation' => $this->settings->payment_activation
'payment_activation' => (integer) $this->settings->payment_activation
]
]
],