Skip to content

Commit 99c70e0

Browse files
committed
Init baseUrl earlier
1 parent fb43c62 commit 99c70e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WoltClient.php

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

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

3738
return $client;
3839
}
@@ -44,7 +45,6 @@ public function createPendingRequest(): void
4445
config('wolt.menu_password')
4546
);
4647

47-
$this->addRouteParameter('baseUrl', $this->baseUrl);
4848
$this->setRequest($request);
4949
}
5050

0 commit comments

Comments
 (0)