Skip to content

chore(chat): remove dead getActiveSubscription helper#1703

Merged
sweetmantech merged 1 commit into
testfrom
migrate/delete-dead-getActiveSubscription
Apr 24, 2026
Merged

chore(chat): remove dead getActiveSubscription helper#1703
sweetmantech merged 1 commit into
testfrom
migrate/delete-dead-getActiveSubscription

Conversation

@arpitgupta1214

@arpitgupta1214 arpitgupta1214 commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

lib/stripe/getActiveSubscription.tsx is unreachable — grep across chat returns only its own definition — so this is a pure dead-code deletion. The GET /api/subscriptions endpoint is being removed from the public API (not migrated), so no caller replacement is needed.

Test plan

  • grep -rn "getActiveSubscription\b" . returns zero matches after deletion
  • Type check shows no new errors referencing the deleted module

The lib/stripe/getActiveSubscription.tsx helper is unreachable —
grep across chat returns only its own definition. Remove it as part
of the Agent API migration row 25.
@vercel

vercel Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-chat Ready Ready Preview Apr 23, 2026 10:12pm

Request Review

@coderabbitai

coderabbitai Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@arpitgupta1214 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 1 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 1 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a8c852a0-935f-4e85-98aa-1a8aa6a44d5f

📥 Commits

Reviewing files that changed from the base of the PR and between 31f35d1 and dacb99f.

📒 Files selected for processing (1)
  • lib/stripe/getActiveSubscription.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch migrate/delete-dead-getActiveSubscription

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: This is a safe cleanup PR that removes a single unused helper function with no remaining references in the codebase.

arpitgupta1214 added a commit to recoupable/docs that referenced this pull request Apr 23, 2026
No monorepo caller hits this endpoint — chat's dead helper is being deleted
(recoupable/chat#1703) and the replacement api route is dropped. Removing
the path, mdx, nav entry, and orphaned response schemas.
@arpitgupta1214 arpitgupta1214 changed the title chore(chat): migrate GET /api/subscriptions (delete dead helper) chore(chat): remove dead getActiveSubscription helper Apr 24, 2026
sweetmantech pushed a commit to recoupable/docs that referenced this pull request Apr 24, 2026
No monorepo caller hits this endpoint — chat's dead helper is being deleted
(recoupable/chat#1703) and the replacement api route is dropped. Removing
the path, mdx, nav entry, and orphaned response schemas.
@sweetmantech sweetmantech merged commit 22f8da2 into test Apr 24, 2026
4 checks passed
@sweetmantech sweetmantech deleted the migrate/delete-dead-getActiveSubscription branch April 24, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants