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:
parent
7068ab2466
commit
6908661bd1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ->
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue