Skip to content

Fix Slack account linking to show user's actual organizations - #371

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-slack-account-link
Dec 27, 2025
Merged

bokelley merged 1 commit into
mainfrom
bokelley/fix-slack-account-link

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Fixed Slack /aao status and /aao whoami commands to display the organizations a user actually belongs to, rather than incorrectly showing the first organization with a subscription in the database.

Changes

  • Import WorkOS client in slack/commands.ts
  • Rename getSubscriptionInfoForUser() → getOrganizationsForUser() to return all user's orgs
  • Update /aao status to list all organizations with subscription status
  • Update /aao whoami to show all organizations the user belongs to

🤖 Generated with Claude Code

The /aao status and /aao whoami commands were incorrectly showing the
first organization with a subscription in the database, rather than
the organizations the user actually belongs to.

Now properly queries WorkOS for user's organization memberships and
displays all organizations they belong to with their subscription status.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant