mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Update seeders to not error out and allow updating values quickly.
This commit is contained in:
@@ -49,7 +49,7 @@ class Service extends Model
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function defaultIndexFile()
|
||||
public static function defaultIndexFile()
|
||||
{
|
||||
return <<<'EOF'
|
||||
'use strict';
|
||||
|
||||
@@ -59,7 +59,7 @@ class ServiceRepository
|
||||
'description' => (isset($data['description'])) ? $data['description'] : null,
|
||||
'folder' => $data['folder'],
|
||||
'startup' => (isset($data['startup'])) ? $data['startup'] : null,
|
||||
'index_file' => $service->defaultIndexFile(),
|
||||
'index_file' => Service::defaultIndexFile(),
|
||||
])->save();
|
||||
|
||||
// It is possible for an event to return false or throw an exception
|
||||
|
||||
Reference in New Issue
Block a user