Disable update account on nordigen to preserve requests

This commit is contained in:
David Bomba 2025-04-16 12:16:50 +10:00
parent cecb7c07a2
commit 0377bb602a
3 changed files with 5 additions and 2 deletions

View File

@ -60,6 +60,7 @@ class CreateAccountRequest extends Request
public function prepareForValidation() public function prepareForValidation()
{ {
$input = $this->all(); $input = $this->all();
$input['user_agent'] = request()->server('HTTP_USER_AGENT'); $input['user_agent'] = request()->server('HTTP_USER_AGENT');

View File

@ -73,7 +73,8 @@ class ProcessBankTransactionsNordigen implements ShouldQueue
// UPDATE ACCOUNT // UPDATE ACCOUNT
try { try {
$this->updateAccount(); // $this->updateAccount();
$this->nordigen_account = true;
} catch (\Exception $e) { } catch (\Exception $e) {
nlog("Nordigen: {$this->bank_integration->nordigen_account_id} - exited abnormally => " . $e->getMessage()); nlog("Nordigen: {$this->bank_integration->nordigen_account_id} - exited abnormally => " . $e->getMessage());

View File

@ -163,7 +163,6 @@ class SubscriptionApiTest extends TestCase
$this->travelTo($timezone_now->copy()->startOfDay()->subHour()); $this->travelTo($timezone_now->copy()->startOfDay()->subHour());
$i = false; $i = false;
//Capture companies within the window of 00:00 and 00:30 //Capture companies within the window of 00:00 and 00:30
if($timezone_now->gte($timezone_now->copy()->startOfDay()) && $timezone_now->lt($timezone_now->copy()->startOfDay()->addMinutes(30))) { if($timezone_now->gte($timezone_now->copy()->startOfDay()) && $timezone_now->lt($timezone_now->copy()->startOfDay()->addMinutes(30))) {
@ -178,6 +177,8 @@ class SubscriptionApiTest extends TestCase
->whereDate('due_date', '<=', now()->setTimezone($company->timezone()->name)->addDay()->startOfDay()) ->whereDate('due_date', '<=', now()->setTimezone($company->timezone()->name)->addDay()->startOfDay())
->get(); ->get();
// nlog($i->count());
// nlog($i->toArray());
} }
$this->assertFalse($i); $this->assertFalse($i);