mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-08-09 18:32:21 +00:00
Improve dashboard data handling and visualization. Updated data fetching and chart configurations for better data display.
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/0ab49ba3-2a0b-4884-9cf6-dbdb4748e98c.jpg
This commit is contained in:
+5
-5
@@ -5090,19 +5090,19 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
const connectionId = connections[0].id;
|
||||
|
||||
// Get counts from all AD objects
|
||||
const usersCount = await db.select({ count: sql`count(*)` }).from(adUsers)
|
||||
const usersCount = await db.select({ count: count() }).from(adUsers)
|
||||
.where(eq(adUsers.connectionId, connectionId));
|
||||
|
||||
const computersCount = await db.select({ count: sql`count(*)` }).from(adComputers)
|
||||
const computersCount = await db.select({ count: count() }).from(adComputers)
|
||||
.where(eq(adComputers.connectionId, connectionId));
|
||||
|
||||
const groupsCount = await db.select({ count: sql`count(*)` }).from(adGroups)
|
||||
const groupsCount = await db.select({ count: count() }).from(adGroups)
|
||||
.where(eq(adGroups.connectionId, connectionId));
|
||||
|
||||
const sitesCount = await db.select({ count: sql`count(*)` }).from(adSites)
|
||||
const sitesCount = await db.select({ count: count() }).from(adSites)
|
||||
.where(eq(adSites.connectionId, connectionId));
|
||||
|
||||
const domainsCount = await db.select({ count: sql`count(*)` }).from(adDomains)
|
||||
const domainsCount = await db.select({ count: count() }).from(adDomains)
|
||||
.where(eq(adDomains.connectionId, connectionId));
|
||||
|
||||
// Return the counts
|
||||
|
||||
Reference in New Issue
Block a user