Skip to content

Commit 611eb29

Browse files
committed
Revert change
1 parent 99c70e0 commit 611eb29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WoltClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public static function create(): static
3333
);
3434

3535
$client->addHeader('WOLT-API-KEY', config('wolt.order_api_key'));
36-
$client->addRouteParameter('baseUrl', $client->baseUrl);
3736

3837
return $client;
3938
}
@@ -50,6 +49,8 @@ public function createPendingRequest(): void
5049

5150
public function prepareRequest(): PendingRequest
5251
{
52+
$this->addRouteParameter('baseUrl', $this->baseUrl);
53+
5354
return $this->request
5455
->withUrlParameters($this->routeParameters)
5556
->withHeaders($this->headers)

0 commit comments

Comments
 (0)