1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
This commit is contained in:
David Bomba 2020-12-13 21:33:30 +11:00
parent 6f451b8924
commit 0f86b3ec21
3 changed files with 15 additions and 13 deletions

View File

@ -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;

View File

@ -164,4 +164,9 @@ class CreateEntityPdf implements ShouldQueue
return $file_path;
}
public function failed(\Exception $exception)
{
}
}

View File

@ -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,
],
];
}