Commit 99f7cb9c authored by DevPilot's avatar DevPilot

fix(admin): approving/rejecting a company no longer returns a 500

AdminService declared a CompanyProfile return but the companies service returns
void, so a TypeError fired after the change was committed.
Co-Authored-By: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
parent c19f2b7d
...@@ -109,14 +109,14 @@ class AdminService ...@@ -109,14 +109,14 @@ class AdminService
->paginate(min((int) ($filters['per_page'] ?? 25), 100)); ->paginate(min((int) ($filters['per_page'] ?? 25), 100));
} }
public function approveCompany(CompanyProfile $company, User $admin): CompanyProfile public function approveCompany(CompanyProfile $company, User $admin): void
{ {
return $this->companyService->approve($company, $admin); $this->companyService->approve($company, $admin);
} }
public function rejectCompany(CompanyProfile $company, User $admin, string $reason): CompanyProfile public function rejectCompany(CompanyProfile $company, User $admin, string $reason): void
{ {
return $this->companyService->reject($company, $admin, $reason); $this->companyService->reject($company, $admin, $reason);
} }
public function startImpersonation(User $admin, User $target): void public function startImpersonation(User $admin, User $target): void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment