diff --git a/src/Endpoint/Update.php b/src/Endpoint/Update.php index 88ca145..7445f49 100644 --- a/src/Endpoint/Update.php +++ b/src/Endpoint/Update.php @@ -58,7 +58,10 @@ class Update run_callbacks($schema->getListeners('updated'), [&$this->model, $context]); - return (new Show($this->api, $this->resource, $this->model)) + $adapter = $this->resource->getAdapter(); + $freshModel = $this->findResource($this->resource, $adapter->getId($this->model), $context); + + return (new Show($this->api, $this->resource, $freshModel)) ->handle($context); } }