Fix reseller package selection when older batches are exhausted
This commit is contained in:
@@ -37,7 +37,7 @@ class TenantPackageController extends Controller
|
||||
$this->hydratePackageSnapshot($package, $eventPackage);
|
||||
});
|
||||
|
||||
$activePackage = $tenant->activeResellerPackage?->load('package');
|
||||
$activePackage = $tenant->getActiveResellerPackage();
|
||||
|
||||
if (! ($activePackage instanceof TenantPackage)) {
|
||||
$activePackage = $packages->firstWhere('active', true);
|
||||
|
||||
Reference in New Issue
Block a user