Pass the updated model through for updating node config, rather than old model, ref #1237

This commit is contained in:
Dane Everitt 2018-09-03 14:54:50 -07:00
parent 7ed9c7cb93
commit 3bb9bf04e5
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 5 additions and 11 deletions

View file

@ -124,7 +124,7 @@ class NodeController extends ApplicationApiController
*/
public function update(UpdateNodeRequest $request): array
{
$node = $this->updateService->returnUpdatedModel()->handle(
$node = $this->updateService->handle(
$request->getModel(Node::class), $request->validated()
);