mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes
This commit is contained in:
parent
6f451b8924
commit
0f86b3ec21
@ -67,7 +67,7 @@ class Handler extends ExceptionHandler
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function report(Throwable $exception)
|
||||
{
|
||||
{info("errrrrrrrrrrrrrrrrrr");
|
||||
if (! Schema::hasTable('accounts')) {
|
||||
info('account table not found');
|
||||
return;
|
||||
@ -101,6 +101,7 @@ class Handler extends ExceptionHandler
|
||||
|
||||
private function validException($exception)
|
||||
{
|
||||
info("valid exception = " .$exception->getMessage());
|
||||
|
||||
if(strpos($exception->getMessage(), 'file_put_contents') === TRUE)
|
||||
return FALSE;
|
||||
|
@ -164,4 +164,9 @@ class CreateEntityPdf implements ShouldQueue
|
||||
|
||||
return $file_path;
|
||||
}
|
||||
|
||||
public function failed(\Exception $exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1048,13 +1048,11 @@ class Import implements ShouldQueue
|
||||
|
||||
$cgt = ClientGatewayToken::Create($modified);
|
||||
|
||||
$old_user_key = array_key_exists('user_id', $resource) ?? $this->user->id;
|
||||
$key = "client_gateway_tokens_{$resource['id']}";
|
||||
|
||||
$this->ids['client_gateway_tokens'] = [
|
||||
"client_gateway_tokens_{$old_user_key}" => [
|
||||
$this->ids['client_gateway_tokens'][$key] = [
|
||||
'old' => $resource['id'],
|
||||
'new' => $cgt->id,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@ -1079,13 +1077,11 @@ class Import implements ShouldQueue
|
||||
|
||||
$task_status = TaskStatus::Create($modified);
|
||||
|
||||
$old_user_key = array_key_exists('user_id', $resource) ?? $this->user->id;
|
||||
$key = "task_statuses_{$resource['id']}";
|
||||
|
||||
$this->ids['task_statuses'] = [
|
||||
"task_statuses_{$old_user_key}" => [
|
||||
$this->ids['task_statuses'][$key] = [
|
||||
'old' => $resource['id'],
|
||||
'new' => $task_status->id,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user