File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,10 +71,6 @@ export function buildFilterConditions(params: AuditLogFilterParams): SQL<unknown
7171
7272/**
7373 * Returns the IDs of all workspaces attached to the organization.
74- *
75- * Reads the primary, not the replica: this list is the tenant/authz boundary
76- * for the audit-log API, and a lagging replica could briefly include a
77- * workspace that was just detached from the org.
7874 */
7975export async function getOrgWorkspaceIds ( organizationId : string ) : Promise < string [ ] > {
8076 const rows = await db
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ import { eq } from 'drizzle-orm'
55/**
66 * Returns the IDs of all workspaces belonging to the organization. Used by
77 * sources whose underlying tables are workspace-scoped rather than org-scoped.
8- *
9- * Reads the primary, not the replica: this scoping list gates which rows a
10- * drain exports while its cursor advances monotonically — a workspace missing
11- * from a lagging replica would have its rows skipped past permanently.
128 */
139export async function getOrganizationWorkspaceIds ( organizationId : string ) : Promise < string [ ] > {
1410 const rows = await db
You can’t perform that action at this time.
0 commit comments