From 528748e757aaf30f277287e0d9a84ee537ce31f6 Mon Sep 17 00:00:00 2001 From: Aneesh Relan Date: Tue, 4 Oct 2022 13:15:55 +0530 Subject: [PATCH] fix: use correct column name for correct member count (#2127) --- src/lib/db/project-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/db/project-store.ts b/src/lib/db/project-store.ts index 88af2d6e55..363d8043ee 100644 --- a/src/lib/db/project-store.ts +++ b/src/lib/db/project-store.ts @@ -271,7 +271,7 @@ class ProjectStore implements IProjectStore { }) .union((queryBuilder) => { queryBuilder - .select('user_id', 'projects.name as project') + .select('user_id', 'projects.id as project') .from('role_user') .leftJoin('roles', 'role_user.role_id', 'roles.id') .crossJoin('projects')