console: PDF door uses the production cap check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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) |