Skip to content

Commit cedf1ee

Browse files
committed
chore(db): drop call-site justification comments
1 parent 2d43e70 commit cedf1ee

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

apps/sim/app/api/v1/audit-logs/query.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
7975
export async function getOrgWorkspaceIds(organizationId: string): Promise<string[]> {
8076
const rows = await db

apps/sim/lib/data-drains/sources/helpers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
139
export async function getOrganizationWorkspaceIds(organizationId: string): Promise<string[]> {
1410
const rows = await db

0 commit comments

Comments
 (0)