From e522813b071daf7ae01dfbf0a451ebc625501ab3 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Thu, 20 Oct 2022 21:43:09 -0400 Subject: [PATCH] Pass in the id --- app/Services/Users/UserDeletionService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Users/UserDeletionService.php b/app/Services/Users/UserDeletionService.php index 257d6783d..d5216cf67 100644 --- a/app/Services/Users/UserDeletionService.php +++ b/app/Services/Users/UserDeletionService.php @@ -33,6 +33,6 @@ class UserDeletionService throw new DisplayException($this->translator->get('admin/user.exceptions.user_has_servers')); } - return $this->repository->delete($user); + return $this->repository->delete($user->id); } }