Disable update account on nordigen to preserve requests
This commit is contained in:
parent
cecb7c07a2
commit
0377bb602a
|
|
@ -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');
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue