[PR #3993] [CLOSED] fix(adapter): apply defaultValue on additional field values when set to false #5124

Closed
opened 2026-03-13 12:11:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3993
Author: @Kinfe123
Created: 8/14/2025
Status: Closed

Base: canaryHead: fix/org-boolean-default


📝 Commits (3)

📊 Changes

1 file changed (+41 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/organization.test.ts (+41 -0)

📄 Description

closes #3984


Summary by cubic

Fixed how boolean default values are applied to organization additional fields, ensuring defaultValue is set when creating new records.

  • Bug Fixes
  • Updated logic in the adapter to use the defaultValue for additional fields.
  • Added a test to confirm boolean defaults are correctly set.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3993 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/14/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/org-boolean-default` --- ### 📝 Commits (3) - [`98fd43d`](https://github.com/better-auth/better-auth/commit/98fd43d8745891a9d367321358bd5e27590d8322) fix(adapter): apply defaultValue on additional field - [`3a372da`](https://github.com/better-auth/better-auth/commit/3a372da6d99dc8b4f2868f359b8054ccb1fa10d4) lint - [`dc68e65`](https://github.com/better-auth/better-auth/commit/dc68e65bc38b823a60c69f7ee5650683dc600db7) update ### 📊 Changes **1 file changed** (+41 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+41 -0) </details> ### 📄 Description closes #3984 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed how boolean default values are applied to organization additional fields, ensuring defaultValue is set when creating new records. - **Bug Fixes** - Updated logic in the adapter to use the defaultValue for additional fields. - Added a test to confirm boolean defaults are correctly set. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:11:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5124