mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
fix db transaction usage
This commit is contained in:
@ -69,8 +69,8 @@ public function deployHook(): void
|
||||
*/
|
||||
public function destroyHook(): void
|
||||
{
|
||||
DB::beginTransaction();
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
$this->sourceControl->provider()->destroyHook($this->site->repository, $this->hook_id);
|
||||
$this->delete();
|
||||
DB::commit();
|
||||
|
Reference in New Issue
Block a user