Skip to content

Commit

Permalink
Fix for mutliple saves
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrneDev committed Aug 5, 2019
1 parent c3599fe commit 7212303
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
33 changes: 21 additions & 12 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Api/Controller/UpdateDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(Dispatcher $bus)
*/
protected function data(ServerRequestInterface $request, Document $document)
{
$this->bus->dispatch(
return $this->bus->dispatch(
new UpdateDraft(array_get($request->getQueryParams(), 'id'), $request->getAttribute('actor'), array_get($request->getParsedBody(), 'data', []))
);
}
Expand Down

0 comments on commit 7212303

Please sign in to comment.