From 2321d959af9d3d60ba621a34d1810b1c90ce8373 Mon Sep 17 00:00:00 2001 From: Xc Date: Sat, 23 Aug 2025 12:36:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=B0=81=E6=8E=89=E4=BA=86ch?= =?UTF-8?q?eckRelationAsync=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/debugStore/DebugStore.d.ts | 1 - es/debugStore/DebugStore.js | 7 ++++--- lib/debugStore/DebugStore.d.ts | 1 - lib/debugStore/DebugStore.js | 7 ++++--- src/debugStore/DebugStore.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/es/debugStore/DebugStore.d.ts b/es/debugStore/DebugStore.d.ts index 7b3f3142..f169f4ad 100644 --- a/es/debugStore/DebugStore.d.ts +++ b/es/debugStore/DebugStore.d.ts @@ -18,7 +18,6 @@ export declare class DebugStore, contextBuilder: (store: DebugStore) => Cxt, authDeduceRelationMap: AuthDeduceRelationMap, selectFreeEntities?: (keyof ED)[], updateFreeDict?: { [A in keyof ED]?: string[]; }); - checkRelationAsync>(entity: T, operation: Omit, context: Cxt): Promise; exec(script: string, txnId?: string): Promise; aggregate(entity: T, aggregation: ED[T]["Aggregation"], context: Cxt, option: OP): Promise>; begin(option?: TxnOption): Promise; diff --git a/es/debugStore/DebugStore.js b/es/debugStore/DebugStore.js index 3b38ae21..473d94cd 100644 --- a/es/debugStore/DebugStore.js +++ b/es/debugStore/DebugStore.js @@ -18,9 +18,10 @@ export class DebugStore extends TreeStore { this.executor = new TriggerExecutor(() => contextBuilder(this)); this.relationAuth = new RelationAuth(storageSchema, authDeduceRelationMap, selectFreeEntities, updateFreeDict); } - checkRelationAsync(entity, operation, context) { - return this.relationAuth.checkRelationAsync(entity, operation, context); - } + /* + checkRelationAsync>(entity: T, operation: Omit, context: Cxt): Promise { + return this.relationAuth.checkRelationAsync(entity, operation, context); + } */ async exec(script, txnId) { throw new Error('debugStore dont support exec script directly'); } diff --git a/lib/debugStore/DebugStore.d.ts b/lib/debugStore/DebugStore.d.ts index 7b3f3142..f169f4ad 100644 --- a/lib/debugStore/DebugStore.d.ts +++ b/lib/debugStore/DebugStore.d.ts @@ -18,7 +18,6 @@ export declare class DebugStore, contextBuilder: (store: DebugStore) => Cxt, authDeduceRelationMap: AuthDeduceRelationMap, selectFreeEntities?: (keyof ED)[], updateFreeDict?: { [A in keyof ED]?: string[]; }); - checkRelationAsync>(entity: T, operation: Omit, context: Cxt): Promise; exec(script: string, txnId?: string): Promise; aggregate(entity: T, aggregation: ED[T]["Aggregation"], context: Cxt, option: OP): Promise>; begin(option?: TxnOption): Promise; diff --git a/lib/debugStore/DebugStore.js b/lib/debugStore/DebugStore.js index e2ac76a0..3eeaba2f 100644 --- a/lib/debugStore/DebugStore.js +++ b/lib/debugStore/DebugStore.js @@ -21,9 +21,10 @@ class DebugStore extends oak_memory_tree_store_1.TreeStore { this.executor = new TriggerExecutor_1.TriggerExecutor(() => contextBuilder(this)); this.relationAuth = new RelationAuth_1.RelationAuth(storageSchema, authDeduceRelationMap, selectFreeEntities, updateFreeDict); } - checkRelationAsync(entity, operation, context) { - return this.relationAuth.checkRelationAsync(entity, operation, context); - } + /* + checkRelationAsync>(entity: T, operation: Omit, context: Cxt): Promise { + return this.relationAuth.checkRelationAsync(entity, operation, context); + } */ async exec(script, txnId) { throw new Error('debugStore dont support exec script directly'); } diff --git a/src/debugStore/DebugStore.ts b/src/debugStore/DebugStore.ts index b93dd7f1..736cfca7 100644 --- a/src/debugStore/DebugStore.ts +++ b/src/debugStore/DebugStore.ts @@ -41,10 +41,10 @@ export class DebugStore contextBuilder(this)); this.relationAuth = new RelationAuth(storageSchema, authDeduceRelationMap, selectFreeEntities, updateFreeDict); } - +/* checkRelationAsync>(entity: T, operation: Omit, context: Cxt): Promise { return this.relationAuth.checkRelationAsync(entity, operation, context); - } + } */ async exec(script: string, txnId?: string) { throw new Error('debugStore dont support exec script directly');