diff --git a/packages/plugins/organizations/src/organizations-plugin.test.ts b/packages/plugins/organizations/src/organizations-plugin.test.ts index 5f3bf54e9a..47be9e6ed2 100644 --- a/packages/plugins/organizations/src/organizations-plugin.test.ts +++ b/packages/plugins/organizations/src/organizations-plugin.test.ts @@ -176,8 +176,8 @@ describe('OrganizationsPlugin', () => { expect(opCtx.data.organization_id).toBeUndefined(); }); - // [#2937] The legitimate "set org_id on behalf" path (per-org seed replay / - // orphan-claim, migrations) runs under SYSTEM_CTX — it must keep an explicit + // [#2937] The legitimate "set org_id on behalf" path (per-org seed replay, + // migrations) runs under SYSTEM_CTX — it must keep an explicit // cross-org value verbatim, and it meets neither the stamp nor the wall. it('[#2937] system context preserves an explicit cross-org organization_id (on-behalf writes unaffected)', async () => { const plugin = new OrganizationsPlugin(); diff --git a/packages/plugins/organizations/src/organizations-plugin.ts b/packages/plugins/organizations/src/organizations-plugin.ts index dd2e6514de..ffc984df06 100644 --- a/packages/plugins/organizations/src/organizations-plugin.ts +++ b/packages/plugins/organizations/src/organizations-plugin.ts @@ -375,8 +375,8 @@ export class OrganizationsPlugin implements Plugin { // // `isSystem` short-circuited above, so the legitimate writers that // deliberately name another organization — the per-org seed replay, - // the orphan claim, imports, migrations — run under SYSTEM_CTX and - // meet neither this stamp nor the wall. + // imports, migrations — run under SYSTEM_CTX and meet neither this + // stamp nor the wall. if (data.organization_id == null || data.organization_id === '') { data.organization_id = opCtx.context.tenantId; }