rez_core 6.5.68 → 6.5.69

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "6.5.68",
3
+ "version": "6.5.69",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -27,7 +27,6 @@ export class EntityDynamicService extends EntityServiceImpl{
27
27
  loggedInUser: any,
28
28
  mainID?: number,
29
29
  ): Promise<any> {
30
- const organizationId = loggedInUser.organization_id;
31
30
  const enterprise_id = loggedInUser.enterprise_id;
32
31
 
33
32
  const tableName = await this.getTableName(entityType, enterprise_id);
@@ -44,9 +43,6 @@ export class EntityDynamicService extends EntityServiceImpl{
44
43
  if (loggedInUser) {
45
44
  entityData.created_by = loggedInUser.id;
46
45
 
47
- if (!entityData.organization_id)
48
- entityData.organization_id = loggedInUser.organization_id;
49
-
50
46
  if (!entityData.enterprise_id)
51
47
  entityData.enterprise_id = loggedInUser.enterprise_id;
52
48
 
@@ -66,7 +62,7 @@ export class EntityDynamicService extends EntityServiceImpl{
66
62
  const statusList = listMasterItemsRepo.find({
67
63
  where: {
68
64
  code: STATUS_ACTIVE,
69
- organization_id: organizationId,
65
+ enterprise_id: enterprise_id,
70
66
  },
71
67
  });
72
68
 
@@ -104,7 +100,6 @@ export class EntityDynamicService extends EntityServiceImpl{
104
100
  const bypassColumns = [
105
101
  'created_date',
106
102
  'created_by',
107
- 'organization_id',
108
103
  'enterprise_id',
109
104
  'level_type',
110
105
  'level_id',
@@ -163,7 +158,6 @@ export class EntityDynamicService extends EntityServiceImpl{
163
158
  ): Promise<any> {
164
159
  const entityType = data.entity_type;
165
160
  const enterpriseId = loggedInUser.enterprise_id;
166
- const organizationId = loggedInUser.organization_id;
167
161
 
168
162
  const repo = this.reflectionHelper.getRepoService('EntityRelation');
169
163
 
@@ -213,7 +207,6 @@ export class EntityDynamicService extends EntityServiceImpl{
213
207
  this.reflectionHelper.getRepoService('EntityRelationData');
214
208
 
215
209
  await relationRepo.save({
216
- organizationId: organizationId,
217
210
  enterprise_id: enterpriseId,
218
211
  source_entity_id: mainID,
219
212
  source_entity_type: entityType,
@@ -323,7 +316,6 @@ export class EntityDynamicService extends EntityServiceImpl{
323
316
  loggedInUser: any,
324
317
  ): Promise<any> {
325
318
  const entityType = data.entity_type;
326
- const organizationId = loggedInUser.organization_id;
327
319
  const enterpriseId = loggedInUser.enterprise_id;
328
320
  const { mappedEntities, ...mainData } = data;
329
321
 
@@ -402,7 +394,6 @@ export class EntityDynamicService extends EntityServiceImpl{
402
394
  const entityRelationDataRepo =
403
395
  this.reflectionHelper.getRepoService('EntityRelationData');
404
396
  await entityRelationDataRepo.save({
405
- organizationId: organizationId,
406
397
  enterprise_id: enterpriseId,
407
398
  source_entity_id: data.id,
408
399
  source_entity_type: entityType,
@@ -463,9 +454,6 @@ export class EntityDynamicService extends EntityServiceImpl{
463
454
  if (loggedInUser) {
464
455
  entityData.modified_by = loggedInUser.id;
465
456
 
466
- if (!entityData.organization_id && entityData.entity_type !== 'ORG')
467
- entityData.organization_id = loggedInUser.organization_id;
468
-
469
457
  if (!entityData.enterprise_id)
470
458
  entityData.enterprise_id = loggedInUser.enterprise_id;
471
459
  }
@@ -480,7 +468,6 @@ export class EntityDynamicService extends EntityServiceImpl{
480
468
  'created_by',
481
469
  'modified_date',
482
470
  'modified_by',
483
- 'organization_id',
484
471
  'enterprise_id',
485
472
  'level_type',
486
473
  'level_id',