1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #5749 from turbo124/v5-develop

Fixes for Stripe import
This commit is contained in:
David Bomba 2021-05-19 13:32:37 +10:00 committed by GitHub
commit 8e3c359eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class StripeController extends BaseController
StripeUpdatePaymentMethods::dispatch(auth()->user()->getCompany());
return response()->json(['message' => 'Processing'], 403);
return response()->json(['message' => 'Processing'], 200);
}
@ -41,7 +41,7 @@ class StripeController extends BaseController
ImportStripeCustomers::dispatch(auth()->user()->getCompany());
return response()->json(['message' => 'Processing'], 403);
return response()->json(['message' => 'Processing'], 200);
}

View File

@ -56,11 +56,11 @@ class ImportCustomers
private function addCustomer(Customer $customer)
{
$account = $this->stripe->company_gateway->company->account;
if(!$account->isPaidHostedClient() && Client::where('company_id', $this->stripe->company_gateway->company_id)->count() > config('ninja.quotas.free.clients'))
return;
$account = $this->stripe->company_gateway->company->account;
nlog("search Stripe for {$custom->id}");