carlos / platform Public

console: PDF door uses the production cap check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 6eec7338940602c06d2536f82ff1702c514f74af parent c1c7ac0
1 file changed, +1 −1
  • internal/console/apipdf.go +1 −1

CI failed — run details

diff --git a/internal/console/apipdf.go b/internal/console/apipdf.go
index 535b6b8ba..cec7053ae 100644
--- a/internal/console/apipdf.go
+++ b/internal/console/apipdf.go
@@ -122,7 +122,7 @@ func (s *Server) handleAPIPDF(w http.ResponseWriter, r *http.Request) {
return
}
if err := s.pdfPlanCheck(r.Context(), acct, now); err != nil {
- if isCap(err) {
+ if isPlanCap(err) {
jsonError(out, http.StatusPaymentRequired, err.Error())
} else {
log.Printf("console: pdf plan check %s: %v", acct.Sqid, err)