Fix mobile API organizations endpoint

Fixed bug where list_user_organizations was being called with user struct
instead of user_id, causing 400 Bad Request errors.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Graham McIntire 2026-01-15 16:54:28 -06:00
parent 7068ab2466
commit 6908661bd1
No known key found for this signature in database

View file

@ -33,7 +33,7 @@ defmodule ToweropsWeb.Api.MobileController do
user = conn.assigns.current_user
organizations =
user
user.id
|> Organizations.list_user_organizations()
|> Enum.map(fn org ->
%{