[PR #3757] [MERGED] fix(org): incorrect use of find org by slug #30592

Closed
opened 2026-04-17 21:38:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: fix/org-slug-from-ctx


📝 Commits (4)

📊 Changes

3 files changed (+51 additions, -15 deletions)

View changed files

.changeset/old-planets-camp.md (+5 -0)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+19 -5)
📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+27 -10)

📄 Description

  • use org slug from context body
  • lint

Summary by cubic

Fixed an issue where the organization slug was not correctly read from the request body when finding an organization by slug.


🔄 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/3757 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/2/2025 **Status:** ✅ Merged **Merged:** 8/3/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `main` ← **Head:** `fix/org-slug-from-ctx` --- ### 📝 Commits (4) - [`da658e5`](https://github.com/better-auth/better-auth/commit/da658e55a1b50ebbac4ebf69247c2018051c71bc) use org slug from context body - [`c8fb882`](https://github.com/better-auth/better-auth/commit/c8fb8820c17d5cf94ae0a68a51e85aaa7e5ec927) lint - [`a02acc2`](https://github.com/better-auth/better-auth/commit/a02acc2bca158191fdeff8683b4e7bc040ee8f2c) test and update - [`486ba0b`](https://github.com/better-auth/better-auth/commit/486ba0b6208fc88f470ecd83430e08839bc03b4a) changesets ### 📊 Changes **3 files changed** (+51 additions, -15 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/old-planets-camp.md` (+5 -0) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+19 -5) 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+27 -10) </details> ### 📄 Description - **use org slug from context body** - **lint** <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed an issue where the organization slug was not correctly read from the request body when finding an organization by slug. <!-- 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-04-17 21:38:31 -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#30592