rez_core 2.1.99 → 2.1.101
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
|
@@ -96,6 +96,8 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
96
96
|
[STATUS_ACTIVE, loggedInUser?.organization_id || 0],
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
+
console.log('Status List:', statusList); // Debug log
|
|
100
|
+
|
|
99
101
|
entityData.created_date = new Date();
|
|
100
102
|
if (loggedInUser) {
|
|
101
103
|
entityData.created_by = loggedInUser.id;
|
|
@@ -106,7 +108,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
106
108
|
if (!entityData.level_type)
|
|
107
109
|
entityData.level_type = loggedInUser.level_type;
|
|
108
110
|
if (!entityData.level_id) entityData.level_id = loggedInUser.level_id;
|
|
109
|
-
if (!entityData.status) entityData.status = statusList.id;
|
|
111
|
+
if (!entityData.status) entityData.status = statusList[0].id;
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
return repo.save(entityData);
|