2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-03-18 15:30:38 +00:00
This commit is contained in:
2022-09-03 22:06:45 +03:00
parent 87e04c37ac
commit b04ff2b5a4
5 changed files with 8 additions and 8 deletions

View File

@@ -2586,7 +2586,7 @@ export default class DistributedConnection extends IStore {
{
template = Warehouse.getTemplateByClassId(classId, TemplateType.Wrapper);
if (template?.definedType != null)
dr = new template.getDependencies(self, id, rt[1], rt[2]);
dr = new template.definedType(self, id, rt[1], rt[2]);
else
dr = new DistributedResource(self, id, rt[1], rt[2]);
}
@@ -2640,7 +2640,7 @@ export default class DistributedConnection extends IStore {
});
} else {
if (resource == null) {
Warehouse.put(id.toString(), dr, this, null, template)
Warehouse.put(id.toString(), dr, self, null, template)
.then(initResource)
.error((ex) => reply.triggerError(ex));
} else {