Skip to content

Commit

Permalink
Updated the put action
Browse files Browse the repository at this point in the history
  • Loading branch information
skipworkgh committed Feb 25, 2020
1 parent 5619598 commit c779067
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Shared/v2/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public function putShare(): array
'jsonKey' => 'share',
'params' => [
'id' => $this->params->idPath(),
'name' => $this->params->name('share'),
'description' => $this->params->desc(),
'display_name' => $this->params->name('share'),
'display_description' => $this->params->desc(),
],
];
}
Expand Down
6 changes: 5 additions & 1 deletion src/Shared/v2/Models/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ public function create(array $userOptions): Creatable

public function update()
{
$response = $this->executeWithState($this->api->putShare());
$response = $this->execute($this->api->putShare(), [
'id' => $this->id,
'display_name' => $this->name,
'display_description' => $this->description,
]);
$this->populateFromResponse($response);
}

Expand Down

0 comments on commit c779067

Please sign in to comment.