Skip to content

Commit

Permalink
Add image url to response for developer app request (#8387)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed May 8, 2024
1 parent c44d02c commit 1cef77a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/discovery-provider/src/queries/get_developer_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_developer_apps_with_grant_for_user(user_id: int) -> List[Dict]:
DeveloperApp.address,
DeveloperApp.name,
DeveloperApp.description,
DeveloperApp.image_url,
Grant.user_id.label("grantor_user_id"),
Grant.created_at.label("grant_created_at"),
Grant.updated_at.label("grant_updated_at"),
Expand All @@ -121,9 +122,10 @@ def get_developer_apps_with_grant_for_user(user_id: int) -> List[Dict]:
"address": row[0],
"name": row[1],
"description": row[2],
"grantor_user_id": row[3],
"grant_created_at": row[4],
"grant_updated_at": row[5],
"image_url": row[3],
"grantor_user_id": row[4],
"grant_created_at": row[5],
"grant_updated_at": row[6],
}
for row in rows
]

0 comments on commit 1cef77a

Please sign in to comment.