feat(store): complete partner store overhaul with mapping, household search, financial analytics, and resident notification system
This commit is contained in:
@@ -36,6 +36,7 @@ class ResolveTenant
|
||||
if ($headerCode) {
|
||||
$tenant = Tenant::where('code', strtoupper((string) $headerCode))->first();
|
||||
if (! $tenant) {
|
||||
\Log::info("ResolveTenant: Header code not found: {$headerCode}");
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'data' => null,
|
||||
@@ -46,6 +47,9 @@ class ResolveTenant
|
||||
}
|
||||
} elseif ($headerId) {
|
||||
$tenant = Tenant::where('uuid', $headerId)->first();
|
||||
if (! $tenant) {
|
||||
\Log::info("ResolveTenant: Header ID not found: {$headerId}");
|
||||
}
|
||||
}
|
||||
|
||||
// Fall back to the authenticated user's tenant.
|
||||
|
||||
Reference in New Issue
Block a user