Fix 500 when exiting hosting panel for existing accounts.
Deploy Ladill Hosting / deploy (push) Successful in 20s
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user