rez_core 2.0.29 → 2.0.30
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/dist/module/meta/controller/entity.controller.js +6 -0
- package/dist/module/meta/controller/entity.controller.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +2 -0
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/controller/entity.controller.ts +5 -2
- package/src/module/meta/service/entity-service-impl.service.ts +2 -0
package/package.json
CHANGED
|
@@ -110,6 +110,7 @@ export class EntityController {
|
|
|
110
110
|
@Req() req: Request & { user: any },
|
|
111
111
|
) {
|
|
112
112
|
let loggedInUser = req.user.userData;
|
|
113
|
+
console.log(loggedInUser," loggedInUser");
|
|
113
114
|
// let loggedInUser = await this.entityService.getEntityData(
|
|
114
115
|
// ENTITYTYPE_USER,
|
|
115
116
|
// requestedUser.userId,
|
|
@@ -120,16 +121,18 @@ export class EntityController {
|
|
|
120
121
|
);
|
|
121
122
|
}
|
|
122
123
|
|
|
124
|
+
console.log(entityType,"entityType");
|
|
123
125
|
const entityMaster =
|
|
124
126
|
await this.entityMasterService.getEntityData(entityType);
|
|
125
|
-
|
|
127
|
+
console.log(entityMaster, "entityMaster");
|
|
126
128
|
const entityService =
|
|
127
129
|
await this.reflectionHelper.getBean<EntityServiceImpl>(
|
|
128
130
|
entityMaster.entity_service,
|
|
129
131
|
);
|
|
130
|
-
|
|
132
|
+
console.log(entityService, "entityService");``
|
|
131
133
|
if (entityService) {
|
|
132
134
|
let existingEntity = await entityService.getEntityData(entityType, id);
|
|
135
|
+
console.log(existingEntity, "existingEntity");
|
|
133
136
|
if (!existingEntity) {
|
|
134
137
|
}
|
|
135
138
|
// let mergeEntity = JsonUtil.merge(existingEntity, entityData);
|
|
@@ -117,10 +117,12 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
117
117
|
id: number,
|
|
118
118
|
): Promise<BaseEntity | null> {
|
|
119
119
|
const entityData = await this.entityMasterService.getEntityData(entityType);
|
|
120
|
+
console.log(entityData, 'entityData in getEntityData');
|
|
120
121
|
|
|
121
122
|
const repoService = this.reflectionHelper.getRepoService(
|
|
122
123
|
entityData.entity_data_class,
|
|
123
124
|
);
|
|
125
|
+
console.log(repoService, 'repoService in getEntityData');
|
|
124
126
|
if (!repoService) {
|
|
125
127
|
throw new Error(
|
|
126
128
|
`Repository service not found for entityType: ${entityType}`,
|