@acorex/platform 20.6.0-next.12 → 20.6.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4778,31 +4778,31 @@ class AXPMiddlewareEntityStorageService extends AXPEntityStorageService {
|
|
|
4778
4778
|
}
|
|
4779
4779
|
async initial(entityName, collection, options) {
|
|
4780
4780
|
const ctx = this.createCtx('initial', entityName, { data: collection });
|
|
4781
|
-
return this.run(ctx, () => this.backend.initial(entityName, ctx.data, options));
|
|
4781
|
+
return this.run(ctx, () => this.backend.initial(ctx.entityName, ctx.data, options));
|
|
4782
4782
|
}
|
|
4783
4783
|
async getOne(entityName, id) {
|
|
4784
4784
|
const ctx = this.createCtx('getOne', entityName, { id });
|
|
4785
|
-
return this.run(ctx, () => this.backend.getOne(entityName, id));
|
|
4785
|
+
return this.run(ctx, () => this.backend.getOne(ctx.entityName, id));
|
|
4786
4786
|
}
|
|
4787
4787
|
async updateOne(entityName, id, keyValues) {
|
|
4788
4788
|
const ctx = this.createCtx('update', entityName, { id, data: keyValues });
|
|
4789
|
-
return this.run(ctx, () => this.backend.updateOne(entityName, id, ctx.data));
|
|
4789
|
+
return this.run(ctx, () => this.backend.updateOne(ctx.entityName, id, ctx.data));
|
|
4790
4790
|
}
|
|
4791
4791
|
async deleteOne(entityName, id) {
|
|
4792
4792
|
const ctx = this.createCtx('delete', entityName, { id });
|
|
4793
|
-
return this.run(ctx, () => this.backend.deleteOne(entityName, id));
|
|
4793
|
+
return this.run(ctx, () => this.backend.deleteOne(ctx.entityName, id));
|
|
4794
4794
|
}
|
|
4795
4795
|
async insertOne(entityName, entity) {
|
|
4796
4796
|
const ctx = this.createCtx('create', entityName, { data: entity });
|
|
4797
|
-
return this.run(ctx, () => this.backend.insertOne(entityName, ctx.data));
|
|
4797
|
+
return this.run(ctx, () => this.backend.insertOne(ctx.entityName, ctx.data));
|
|
4798
4798
|
}
|
|
4799
4799
|
async getAll(entityName) {
|
|
4800
4800
|
const ctx = this.createCtx('getAll', entityName);
|
|
4801
|
-
return this.run(ctx, () => this.backend.getAll(entityName));
|
|
4801
|
+
return this.run(ctx, () => this.backend.getAll(ctx.entityName));
|
|
4802
4802
|
}
|
|
4803
4803
|
async query(entityName, request) {
|
|
4804
4804
|
const ctx = this.createCtx('query', entityName, { request });
|
|
4805
|
-
return this.run(ctx, () => this.backend.query(entityName, request));
|
|
4805
|
+
return this.run(ctx, () => this.backend.query(ctx.entityName, request));
|
|
4806
4806
|
}
|
|
4807
4807
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPMiddlewareEntityStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4808
4808
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPMiddlewareEntityStorageService }); }
|