Skip to content

Commit 32a9fbe

Browse files
committed
Refresh the model after updating
1 parent f44f363 commit 32a9fbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Endpoint/Update.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public function handle(Context $context): ResponseInterface
5858

5959
run_callbacks($schema->getListeners('updated'), [&$this->model, $context]);
6060

61-
return (new Show($this->api, $this->resource, $this->model))
61+
$adapter = $this->resource->getAdapter();
62+
$freshModel = $this->findResource($this->resource, $adapter->getId($this->model), $context);
63+
64+
return (new Show($this->api, $this->resource, $freshModel))
6265
->handle($context);
6366
}
6467
}

0 commit comments

Comments
 (0)