Skip to content

Commit

Permalink
Fix bunq housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Nov 14, 2019
1 parent e858836 commit 04d9add
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions webapp/app/Models/BunqAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Illuminate\Support\Facades\Crypt;
use bunq\Context\ApiContext;
use bunq\Context\BunqContext;
use bunq\Model\Core\NotificationFilterUrlMonetaryAccountInternal;
use bunq\Model\Generated\Endpoint\MonetaryAccountBank;
use bunq\Model\Generated\Endpoint\NotificationFilterUrlMonetaryAccount;
use bunq\Model\Generated\Object\NotificationFilterUrl;

/**
Expand Down Expand Up @@ -202,12 +202,10 @@ public function updateBunqAccountSettings() {
$message = __('pages.bunqAccounts.noHttpsNoCallbacks');

// Set the filters
try {
NotificationFilterUrlMonetaryAccount::create(
$this->monetary_account_id,
$filters
);
} catch(\Error $e) {}
NotificationFilterUrlMonetaryAccountInternal::createWithListResponse(
$this->monetary_account_id,
$filters
);

return $message;
}
Expand Down

0 comments on commit 04d9add

Please sign in to comment.