Update partner packages, copy, and demo switcher

This commit is contained in:
Codex Agent
2026-01-15 17:33:36 +01:00
parent b732f88b0e
commit 7b88c1d365
50 changed files with 1335 additions and 411 deletions

View File

@@ -28,7 +28,12 @@ class CreditCheckMiddleware
}
if ($this->requiresCredits($request) && ! $this->shouldBypassCreditCheck($request, $tenant)) {
$violation = $this->limitEvaluator->assessEventCreation($tenant);
$includedSlug = $request->input('service_package_slug');
$violation = $this->limitEvaluator->assessEventCreation(
$tenant,
is_string($includedSlug) && $includedSlug !== '' ? $includedSlug : null
);
if ($violation !== null) {
return ApiError::response(