fix: assign onboarding group through model properties
This commit is contained in:
1 parent
dfdfbf2562
commit
9a523b625c
1 file changed
+3
-1
@@ -38,7 +38,9 @@ file_put_contents("$dir/before.json", json_encode([
|
||||
], JSON_THROW_ON_ERROR));
|
||||
|
||||
$manifest = DB::transaction(function () use ($opts) {
|
||||
$group = ServerGroup::create(['name' => 'dpl 接入验收 ' . $opts['key']]);
|
||||
$group = new ServerGroup();
|
||||
$group->name = 'dpl 接入验收 ' . $opts['key'];
|
||||
$group->save();
|
||||
$machine = ServerMachine::create([
|
||||
'name' => 'dpl-' . $opts['key'], 'notes' => 'Independent AnyTLS service; existing XrayR preserved',
|
||||
'is_active' => true, 'token' => ServerMachine::generateToken(),
|
||||
|
||||
Reference in new issue
Block a user