1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add hungarian language

This commit is contained in:
David Bomba 2023-06-14 08:14:14 +10:00
parent 5750af9ede
commit c6aac35605

View File

@ -155,12 +155,17 @@ class Ninja
public static function triggerForwarding(string $company_key, string $email)
{
Http::withHeaders([
'X-API-HOSTED-SECRET' => config('ninja.ninja_hosted_secret'),
])->post(config('ninja.license_url').'/api/v1/enable_forwarding', [
'account_key' => $company_key,
'email' => $email,
]);
try {
Http::withHeaders([
'X-API-HOSTED-SECRET' => config('ninja.ninja_hosted_secret'),
])->post(config('ninja.license_url').'/api/v1/enable_forwarding', [
'account_key' => $company_key,
'email' => $email,
]);
}
catch (\Exception $e) {
nlog("attempt forwarding for{$email} - {$company_key}");
}
}
public function createLicense($request)