Skip to content

Commit 5059987

Browse files
committed
Fix Content Type
1 parent 426b1a7 commit 5059987

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Models/Servers/Servers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public function create(
8585
'json' => [
8686
'name' => $name,
8787
'server_type' => $serverType->id,
88-
'datacenter' => $datacenter ?: $datacenter->id,
89-
'location' => $location ?: $location->id,
88+
'datacenter' => $datacenter == null ? null : $datacenter->id,
89+
'location' => $location == null ? null : $location->id,
9090
'image' => $image->id,
9191
'start_after_create' => $startAfterCreate,
9292
'user_data' => $user_data,

0 commit comments

Comments
 (0)