Skip to content

Commit

Permalink
[N/A] Always include Site ID with Auctioneer Requests (#909)
Browse files Browse the repository at this point in the history
* [N/A] Update plugins to latest versions

* [N/A] Ending Soon Email Updates

* [N/A] Formatting, I18n

* [N/A] Use correct array merge

* [N/A] Always include Site ID with Auctioneer Requests

* [N/A] Add Site ID to Details REST API Endpoint
  • Loading branch information
bd-viget authored Apr 17, 2024
1 parent 7ecb1f6 commit 30a7e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public function update( int $auction_id, array $extra_data = [] ): bool {
private function setup_payload_data( array $payload_data, array $extra_data = [] ): array {
$defaults = [
'requestTime',
'siteId',
];

return array_filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ private function get_payload_item( string $item ): mixed {
'requestTime' => current_datetime()->format( 'c' ),
'rewardClaimed' => $this->has_user_claimed_reward(),
'rewardUrl' => goodbids()->rewards->get_claim_reward_url( $this->auction_id ),
'siteId' => get_current_blog_id(),
'socketUrl' => $this->get_socket_url(),
'startTime' => $this->auction->get_start_date_time( 'c' ),
'totalBids' => $this->auction->get_bid_count(),
Expand Down

0 comments on commit 30a7e25

Please sign in to comment.