rez_core 2.1.100 → 2.1.102

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": "2.1.100",
3
+ "version": "2.1.102",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -95,6 +95,7 @@ export class ListMasterService {
95
95
  inactiveIdsArray?: number[],
96
96
  loggedInUser?: UserData,
97
97
  ) {
98
+ console.log(sourceList, 'sourceList',params, 'params', inactiveIdsArray, 'inactiveIdsArray', loggedInUser, 'loggedInUser');
98
99
  let result: { label: string; value: number }[] = [];
99
100
  if (!sourceList) return result;
100
101
 
@@ -97,7 +97,6 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
97
97
  );
98
98
 
99
99
  console.log('Status List:', statusList); // Debug log
100
- console.log('Entity Data Before Save:', entityData); // Debug log
101
100
 
102
101
  entityData.created_date = new Date();
103
102
  if (loggedInUser) {
@@ -109,7 +108,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
109
108
  if (!entityData.level_type)
110
109
  entityData.level_type = loggedInUser.level_type;
111
110
  if (!entityData.level_id) entityData.level_id = loggedInUser.level_id;
112
- if (!entityData.status) entityData.status = statusList.id;
111
+ if (!entityData.status) entityData.status = statusList[0].id;
113
112
  }
114
113
 
115
114
  return repo.save(entityData);