Skip to content

Commit f7f54a9

Browse files
qq9340100claude
andauthored
fix(plugin-sharing): tenancy slot 查找改用契约类型,止血 main 的 check:slot-lookup 门禁 (#6100) (#6104)
Fixes #6100 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 830f3f1 commit f7f54a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugins/plugin-sharing/src/sharing-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { EngineMiddleware, OperationContext } from '@objectstack/objectql';
66
import type { IHttpServer, IHttpRequest, ShareLinkExecutionContext } from '@objectstack/spec/contracts';
77
import { SysRecordShare, SysSharingRule, SysShareLink } from './objects/index.js';
88
import { SysBusinessUnit, SysBusinessUnitMember } from '@objectstack/platform-objects/identity';
9-
import { SharingService, type SharingEngine } from './sharing-service.js';
9+
import { SharingService, type SharingEngine, type SharingTenancyProbe } from './sharing-service.js';
1010
import { SharingRuleService } from './sharing-rule-service.js';
1111
import { ShareLinkService } from './share-link-service.js';
1212
import { registerShareLinkRoutes } from './share-link-routes.js';
@@ -456,7 +456,7 @@ export class SharingServicePlugin implements Plugin {
456456
// widen a hierarchy scope that carries no organization; an unresolvable
457457
// posture is not evidence of `single`.
458458
tenancy: () => {
459-
try { return ctx.getService<any>('tenancy'); }
459+
try { return ctx.getService<SharingTenancyProbe>('tenancy'); }
460460
catch { return null; }
461461
},
462462
});

0 commit comments

Comments
 (0)