fix: Use execute_query instead of execute_query_single to return all customer contacts
This commit is contained in:
parent
935d2253f7
commit
da5ec19188
@ -743,7 +743,7 @@ async def lock_customer_subscriptions(customer_id: int, lock_request: dict):
|
||||
@router.get("/customers/{customer_id}/contacts")
|
||||
async def get_customer_contacts(customer_id: int):
|
||||
"""Get all contacts for a specific customer"""
|
||||
rows = execute_query_single("""
|
||||
rows = execute_query("""
|
||||
SELECT
|
||||
c.*,
|
||||
cc.is_primary,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user