fix count on list domains endpoint

This commit is contained in:
miloschwartz
2026-04-20 20:46:38 -07:00
parent 34dc4c2d07
commit b3bc70875b
2 changed files with 3 additions and 2 deletions

View File

@@ -380,7 +380,7 @@
"userTitle": "Manage All Users", "userTitle": "Manage All Users",
"userDescription": "View and manage all users in the system", "userDescription": "View and manage all users in the system",
"userAbount": "About User Management", "userAbount": "About User Management",
"userAbountDescription": "This table displays all root user objects in the system. Each user may belong to multiple organizations. Removing a user from an organization does not delete their root user object - they will remain in the system. To completely remove a user from the system, you must delete their root user object using the delete action in this table.", "userAbountDescription": "This table displays all base user objects in the system. Each user may belong to multiple organizations. Removing a user from an organization does not delete their base user object. They will remain in the system. To completely remove a user from the system, you must delete their base user object using the delete action in this table.",
"userServer": "Server Users", "userServer": "Server Users",
"userSearch": "Search server users...", "userSearch": "Search server users...",
"userErrorDelete": "Error deleting user", "userErrorDelete": "Error deleting user",

View File

@@ -103,7 +103,8 @@ export async function listDomains(
const [{ count }] = await db const [{ count }] = await db
.select({ count: sql<number>`count(*)` }) .select({ count: sql<number>`count(*)` })
.from(domains); .from(orgDomains)
.where(eq(orgDomains.orgId, orgId));
return response<ListDomainsResponse>(res, { return response<ListDomainsResponse>(res, {
data: { data: {