Fix 500 when exiting hosting panel for existing accounts.
Deploy Ladill Hosting / deploy (push) Successful in 20s

The account overview queried a local mailboxes table that the extracted hosting app does not have; guard those lookups and skip email-addon upsells when mailboxes are managed on Ladill Email.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-06 17:02:44 +00:00
co-authored by Cursor
parent 206a022e27
commit 1135915797
5 changed files with 62 additions and 21 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class DeactivateMailboxJob implements ShouldQueue
$mailbox->delete();
if ($hostingAccountId) {
$account = HostingAccount::query()->with(['product', 'mailboxes'])->find($hostingAccountId);
$account = HostingAccount::query()->with(['product'])->find($hostingAccountId);
if ($account) {
$hostingMailboxes->syncAddonInvoice($account);
}