Skip to content

Conversation

@islandbitcoin
Copy link
Contributor

PR 2: feat/upgrade-request-admin-decision

Title: feat: add admin mutation to approve/reject upgrade requests

Summary:

  • Add accountUpgradeRequestDecide admin mutation
  • Add getAccountUpgradeRequestByName and updateUpgradeRequestStatus to ErpNext
  • If approved: updates ERPNext status AND MongoDB account level
  • If rejected: updates ERPNext status only
  • 4 unit tests

islandbitcoin and others added 2 commits January 8, 2026 10:50
Add accountUpgradeRequestDecide mutation for admins to process business
account upgrade requests. On approval, updates both ERPNext status and
MongoDB account level. On rejection, only updates ERPNext status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix wrong variable check in ErpNext (was !data, now !request)
- Use proper UpgradeRequestUpdateError instead of type cast
- Add UpgradeRequestQueryError and UpgradeRequestUpdateError to error-map
- Add unit tests for decideUpgradeRequest

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@islandbitcoin islandbitcoin self-assigned this Jan 13, 2026
@islandbitcoin islandbitcoin added the enhancement New feature or request label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants