Skip to content

Commit 798b5ae

Browse files
committed
ref: removed unused db transaction
1 parent ab7d42b commit 798b5ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Application/User/Services/UserService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Application\User\Data\UserData;
99
use Domain\User\Repositories\UserRepositoryContract;
1010
use Illuminate\Database\Eloquent\Collection;
11-
use Illuminate\Support\Facades\DB;
1211

1312
class UserService implements UserServiceContract
1413
{
@@ -21,6 +20,6 @@ public function index(): Collection
2120

2221
public function update($id, UserData $userData): bool
2322
{
24-
return DB::transaction(fn(): bool => $this->userRepository->update($id, $userData));
23+
return $this->userRepository->update($id, $userData);
2524
}
2625
}

0 commit comments

Comments
 (0)