Skip to content

Commit

Permalink
fixed return in updateDomainContent method to Item (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sztig authored Dec 10, 2024
1 parent 301d87c commit af73c18
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 @@ -55,7 +55,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 @@ -136,7 +136,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 af73c18

Please sign in to comment.