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');