Fix: Contacts query skulle returnere alle rækker ikke kun én

This commit is contained in:
Christian 2025-12-22 15:29:28 +01:00
parent e4b940009f
commit 5bb6e73a26

View File

@ -70,7 +70,7 @@ async def get_contacts(
""" """
params.extend([limit, offset]) params.extend([limit, offset])
contacts = execute_query_single(query, tuple(params)) # Default is fetchall contacts = execute_query(query, tuple(params)) # Returns all rows
return { return {
"contacts": contacts or [], "contacts": contacts or [],