Skip to content

Commit

Permalink
Search attributes command: force objects in JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Feb 10, 2025
1 parent 6745904 commit 95c338c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Internal/Transport/Request/UpsertSearchAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class UpsertSearchAttributes extends Request
public function __construct(
private readonly array $searchAttributes,
) {
parent::__construct(self::NAME, ['searchAttributes' => $searchAttributes]);
parent::__construct(self::NAME, ['searchAttributes' => (object) $searchAttributes]);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class UpsertTypedSearchAttributes extends Request
public function __construct(
private readonly array $searchAttributes,
) {
parent::__construct(self::NAME, ['search_attributes' => $this->prepareSearchAttributes()]);
parent::__construct(self::NAME, ['search_attributes' => (object) $this->prepareSearchAttributes()]);
}

/**
Expand Down

0 comments on commit 95c338c

Please sign in to comment.