Skip to content

Commit

Permalink
fix: remove return type for relation create
Browse files Browse the repository at this point in the history
  • Loading branch information
Katalam committed Sep 6, 2024
1 parent 8716d1a commit ec19b18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Query/RelationBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public function modify(int $id): bool
/**
* @throws OnOfficeException
*/
public function create(): array
public function create(): bool
{
$response = $this->onOfficeService->requestApi(
$this->onOfficeService->requestApi(
OnOfficeAction::Create,
OnOfficeResourceType::Relation,
parameters: [
Expand All @@ -94,6 +94,6 @@ public function create(): array
],
);

return $response->json('response.results.0.data.records.0');
return true;
}
}

0 comments on commit ec19b18

Please sign in to comment.