[PR #437] [MERGED] fix: make image optional in organization plugin #3287

Closed
opened 2026-03-13 10:47:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/437
Author: @oglassdev
Created: 11/6/2024
Status: Merged
Merged: 11/6/2024
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (1)

  • 3e79eeb fix: make image optional in organization plugin

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/client.ts (+1 -1)
📝 packages/better-auth/src/plugins/organization/organization.ts (+1 -1)

📄 Description

When using auth.api.getFullOrganization or authClient.organization.getFull, the type doesn't align with typeof auth.$Infer.ActiveOrganization

This PR changes the type of image from string to string | undefined


🔄 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/437 **Author:** [@oglassdev](https://github.com/oglassdev) **Created:** 11/6/2024 **Status:** ✅ Merged **Merged:** 11/6/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`3e79eeb`](https://github.com/better-auth/better-auth/commit/3e79eeb01eca4b8452888f9c8821937328e9e681) fix: make image optional in organization plugin ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/client.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+1 -1) </details> ### 📄 Description When using `auth.api.getFullOrganization` or `authClient.organization.getFull`, the type doesn't align with `typeof auth.$Infer.ActiveOrganization` This PR changes the type of `image` from `string` to `string | undefined` --- <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 10:47:10 -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#3287