From 41e21acf424bcb4afed6f1a7711f1ae50743b593 Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 7 Nov 2025 14:59:29 -0800 Subject: [PATCH] Fix error related to user id col --- server/lib/rebuildSiteClientAssociations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/rebuildSiteClientAssociations.ts b/server/lib/rebuildSiteClientAssociations.ts index 5003b8e1..5eee9077 100644 --- a/server/lib/rebuildSiteClientAssociations.ts +++ b/server/lib/rebuildSiteClientAssociations.ts @@ -64,7 +64,7 @@ export async function rebuildSiteClientAssociations( // get all of the users in these roles const userIdsFromRoles = await trx .select({ - userId: users.userId + userId: userOrgs.userId }) .from(userOrgs) .where(inArray(userOrgs.roleId, roleIds))