mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Add base support for definining the number of backups that can be created for a server
This commit is contained in:
@@ -101,8 +101,9 @@ class BuildModificationService
|
||||
'threads' => array_get($data, 'threads'),
|
||||
'disk' => array_get($data, 'disk'),
|
||||
'allocation_id' => array_get($data, 'allocation_id'),
|
||||
'database_limit' => array_get($data, 'database_limit'),
|
||||
'allocation_limit' => array_get($data, 'allocation_limit'),
|
||||
'database_limit' => array_get($data, 'database_limit', 0),
|
||||
'allocation_limit' => array_get($data, 'allocation_limit', 0),
|
||||
'backup_limit' => array_get($data, 'backup_limit', 0),
|
||||
]);
|
||||
|
||||
$updateData = $this->structureService->handle($server);
|
||||
|
||||
@@ -249,8 +249,9 @@ class ServerCreationService
|
||||
'pack_id' => empty($data['pack_id']) ? null : $data['pack_id'],
|
||||
'startup' => Arr::get($data, 'startup'),
|
||||
'image' => Arr::get($data, 'image'),
|
||||
'database_limit' => Arr::get($data, 'database_limit'),
|
||||
'allocation_limit' => Arr::get($data, 'allocation_limit'),
|
||||
'database_limit' => Arr::get($data, 'database_limit', 0),
|
||||
'allocation_limit' => Arr::get($data, 'allocation_limit', 0),
|
||||
'backup_limit' => Arr::get($data, 'backup_limit', 0),
|
||||
]);
|
||||
|
||||
return $model;
|
||||
|
||||
Reference in New Issue
Block a user