rez_core 3.1.123 → 3.1.124
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.
package/package.json
CHANGED
|
@@ -119,29 +119,6 @@ export class PopulateWorkflowService extends EntityServiceImpl {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
const defaultEntity = await this.dataSource.query(
|
|
123
|
-
`SELECT * FROM eth_entity WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1 AND entity_type = 'ENT'`,
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
const defaultEntityData = defaultEntity[0];
|
|
127
|
-
|
|
128
|
-
defaultEntityData.organization_id = organization_id;
|
|
129
|
-
defaultEntityData.level_id = organization_id;
|
|
130
|
-
|
|
131
|
-
await this.dataSource.query(
|
|
132
|
-
`INSERT INTO eth_entity (entity_type, name, status, code, enterprise_id, organization_id, level_id, level_type) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
133
|
-
[
|
|
134
|
-
defaultEntityData.entity_type,
|
|
135
|
-
defaultEntityData.name,
|
|
136
|
-
defaultEntityData.status,
|
|
137
|
-
defaultEntityData.code,
|
|
138
|
-
defaultEntityData.enterprise_id,
|
|
139
|
-
organization_id,
|
|
140
|
-
organization_id,
|
|
141
|
-
defaultEntityData.level_type,
|
|
142
|
-
],
|
|
143
|
-
);
|
|
144
|
-
|
|
145
122
|
const workflowTables = [
|
|
146
123
|
{ table: 'cr_workflow', entityType: 'WRFW', service: 'workflowService' },
|
|
147
124
|
{
|