Skip to content

Commit

Permalink
Merge branch '4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sztig committed Dec 10, 2024
2 parents 89e4156 + af73c18 commit 6f3bb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Resolver/DomainContentMutationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(
$this->itemFactory = $relatedContentItemFactory;
}

public function updateDomainContent($input, Argument $args, $versionNo, $language): RepositoryValues\Content\Content
public function updateDomainContent($input, Argument $args, $versionNo, $language): Item
{
if (isset($args['id'])) {
$idArray = GlobalId::fromGlobalId($args['id']);
Expand Down Expand Up @@ -137,7 +137,7 @@ public function updateDomainContent($input, Argument $args, $versionNo, $languag
throw new UserError('You are not authorized to publish this version');
}

return $this->getContentService()->loadContent($contentDraft->id);
return $this->itemFactory->fromContent($this->getContentService()->loadContent($contentDraft->id));
}

public function createDomainContent($input, $contentTypeIdentifier, $parentLocationId, $language): Item
Expand Down

0 comments on commit 6f3bb87

Please sign in to comment.