[PR #3833] [MERGED] chore: teamId ref field attribute test #5035

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3833
Author: @Kinfe123
Created: 8/6/2025
Status: Merged
Merged: 8/6/2025
Merged by: @Bekacru

Base: mainHead: fix/teamId-ref-field-issue


📝 Commits (2)

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/organization/adapter.ts (+9 -0)

📄 Description

Summary by cubic

Updated the team deletion logic to also remove all related teamMember records when a team is deleted.


🔄 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/3833 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/6/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/teamId-ref-field-issue` --- ### 📝 Commits (2) - [`c63c84b`](https://github.com/better-auth/better-auth/commit/c63c84be74222827841d3896c6e0d3fafdd9a203) fix: teamId ref field and constraints - [`bfee38a`](https://github.com/better-auth/better-auth/commit/bfee38ae834b89e96768b34c37b1b36c676aabfd) test ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/adapter.ts` (+9 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated the team deletion logic to also remove all related teamMember records when a team is deleted. <!-- 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:08:48 -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#5035