diff --git a/server/routers/domain/listDomains.ts b/server/routers/domain/listDomains.ts index 09e8747f..a1cbbb3f 100644 --- a/server/routers/domain/listDomains.ts +++ b/server/routers/domain/listDomains.ts @@ -80,15 +80,15 @@ export async function listDomains( const { orgId } = parsedParams.data; - const domains = await queryDomains(orgId.toString(), limit, offset); + const domainsList = await queryDomains(orgId.toString(), limit, offset); const [{ count }] = await db .select({ count: sql`count(*)` }) - .from(users); + .from(domains); return response(res, { data: { - domains, + domains: domainsList, pagination: { total: count, limit,