Skip to content

Commit 5436e07

Browse files
author
Daniel Flack
committed
Fixed Port update and retrieve issues
1 parent a09991b commit 5436e07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Networking/v2/Models/Port.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,14 @@ public function bulkCreate(array $userOptions): array
148148

149149
public function retrieve()
150150
{
151-
$this->executeWithState($this->api->getPort());
151+
$response = $this->execute($this->api->postNetwork(), $data);
152+
return $this->populateFromResponse($response);
152153
}
153154

154155
public function update()
155156
{
156-
$this->executeWithState($this->api->putPort());
157+
i$response = $this->executeWithState($this->api->putPort());
158+
$this->populateFromResponse($response);
157159
}
158160

159161
public function delete()

0 commit comments

Comments
 (0)