Skip to content

fix: update PaymentMode to use sql.NullString#1496

Merged
AmanGIT07 merged 1 commit intomainfrom
fix/null-payment-mode-handling
Mar 31, 2026
Merged

fix: update PaymentMode to use sql.NullString#1496
AmanGIT07 merged 1 commit intomainfrom
fix/null-payment-mode-handling

Conversation

@AmanGIT07
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
frontier Ready Ready Preview, Comment Mar 31, 2026 3:09pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9fa37680-0c90-41fa-82ad-8e98ca01deee

📥 Commits

Reviewing files that changed from the base of the PR and between e4d5df5 and f6cd231.

📒 Files selected for processing (1)
  • internal/store/postgres/org_billing_repository.go

📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of organization payment mode data to properly represent cases where payment mode information is not set.

Walkthrough

The OrgBilling.PaymentMode field type is changed from string to sql.NullString to properly represent NULL database values. The corresponding mapping logic in transformToAggregatedOrganization() is updated to extract the string value using the .String property instead of direct assignment.

Changes

Cohort / File(s) Summary
Nullable Payment Mode Field
internal/store/postgres/org_billing_repository.go
Changed OrgBilling.PaymentMode field type from string to sql.NullString and updated the mapping in transformToAggregatedOrganization() to access o.PaymentMode.String instead of direct assignment.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • rsbh

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.

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23804563740

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 41.675%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/store/postgres/org_billing_repository.go 0 1 0.0%
Totals Coverage Status
Change from base Build 23797046800: 0.0%
Covered Lines: 15052
Relevant Lines: 36118

💛 - Coveralls

@AmanGIT07 AmanGIT07 merged commit edfef0b into main Mar 31, 2026
8 checks passed
@AmanGIT07 AmanGIT07 deleted the fix/null-payment-mode-handling branch March 31, 2026 15:24
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.

3 participants