[PR #1644] [MERGED] fix(organization): two members being created when team is enabled #29519

Closed
opened 2026-04-17 20:50:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1644
Author: @Bekacru
Created: 3/2/2025
Status: Merged
Merged: 3/2/2025
Merged by: @Bekacru

Base: mainHead: fix/teams#2


📝 Commits (2)

  • 7f4e27e fix(organization): separate organization creation from member creation
  • 603346b fix(organization): adjust organization tests and creation response

📊 Changes

3 files changed (+34 additions, -46 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/adapter.ts (+1 -21)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+28 -23)
📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+5 -2)

📄 Description

closes #1643


🔄 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/1644 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 3/2/2025 **Status:** ✅ Merged **Merged:** 3/2/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/teams#2` --- ### 📝 Commits (2) - [`7f4e27e`](https://github.com/better-auth/better-auth/commit/7f4e27ee207f22ae47d5bf3c6c4b56759c4b61bf) fix(organization): separate organization creation from member creation - [`603346b`](https://github.com/better-auth/better-auth/commit/603346bb77b491ebf765eeb6573643b17ebc6319) fix(organization): adjust organization tests and creation response ### 📊 Changes **3 files changed** (+34 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/adapter.ts` (+1 -21) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+28 -23) 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+5 -2) </details> ### 📄 Description closes #1643 --- <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-04-17 20:50:39 -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#29519