1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

add ?reset=1 to getBTCAdress only when environment is in development

This commit is contained in:
cnohall 2024-09-16 18:20:53 +09:00
parent 527b1263ce
commit 9848a54192

View File

@ -49,8 +49,8 @@ class Blockonomics implements MethodInterface
public function getBTCAddress(): string
{
$api_key = $this->blockonomics->api_key;
// TODO: remove ?reset=1 before marking PR as ready
$url = 'https://www.blockonomics.co/api/new_address?reset=1';
$params = config('ninja.environment') == 'development' ? '?reset=1' : '';
$url = 'https://www.blockonomics.co/api/new_address' . $params;
$r = Http::withToken($api_key)
->post($url, []);