Afia: fix dangling QrTypeCatalog::eventTypes() in chat context
Deploy Ladill Merchant / deploy (push) Successful in 27s

AfiaController::context() called QrTypeCatalog::eventTypes(), which does
not exist on this app's catalog (leftover from the Events-app template) —
every Afia chat 500'd with 'Afia could not respond right now' before the
LLM was ever reached. Use storefrontTypes() (shop/menu/booking), the QR
types this merchant app actually owns.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-10 23:16:13 +00:00
co-authored by Claude Opus 4.8
parent 00b1644887
commit 6cc6751c71
+1 -1
View File
@@ -45,7 +45,7 @@ class AfiaController extends Controller
return ['signed_in' => 'no']; return ['signed_in' => 'no'];
} }
$types = QrTypeCatalog::eventTypes(); $types = QrTypeCatalog::storefrontTypes();
$codes = $account->qrCodes()->whereIn('type', $types); $codes = $account->qrCodes()->whereIn('type', $types);
$ctx = [ $ctx = [