added db transaction to jobs

This commit is contained in:
Denis Duliçi
2020-06-26 13:40:19 +03:00
parent f20f5c9def
commit acdc9da2c8
57 changed files with 606 additions and 469 deletions

View File

@ -2,6 +2,9 @@
namespace App\Traits;
use Exception;
use Throwable;
trait Jobs
{
/**
@ -48,7 +51,7 @@ trait Jobs
'data' => $data,
'message' => '',
];
} catch(\Exception $e) {
} catch (Exception | Throwable $e) {
$response = [
'success' => false,
'error' => true,