added db transaction to jobs
This commit is contained in:
@ -30,7 +30,9 @@ class UpdateReport extends Job
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->report->update($this->request->all());
|
||||
\DB::transaction(function () {
|
||||
$this->report->update($this->request->all());
|
||||
});
|
||||
|
||||
return $this->report;
|
||||
}
|
||||
|
Reference in New Issue
Block a user