mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
add ?reset=1 to getBTCAdress only when environment is in development
This commit is contained in:
parent
527b1263ce
commit
9848a54192
@ -49,8 +49,8 @@ class Blockonomics implements MethodInterface
|
|||||||
public function getBTCAddress(): string
|
public function getBTCAddress(): string
|
||||||
{
|
{
|
||||||
$api_key = $this->blockonomics->api_key;
|
$api_key = $this->blockonomics->api_key;
|
||||||
// TODO: remove ?reset=1 before marking PR as ready
|
$params = config('ninja.environment') == 'development' ? '?reset=1' : '';
|
||||||
$url = 'https://www.blockonomics.co/api/new_address?reset=1';
|
$url = 'https://www.blockonomics.co/api/new_address' . $params;
|
||||||
|
|
||||||
$r = Http::withToken($api_key)
|
$r = Http::withToken($api_key)
|
||||||
->post($url, []);
|
->post($url, []);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user