rez_core 2.0.23 → 2.0.24
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
|
@@ -69,7 +69,11 @@ export class EntityController {
|
|
|
69
69
|
) {
|
|
70
70
|
let requestedUser = req.user;
|
|
71
71
|
let appcode = requestedUser.appcode;
|
|
72
|
-
let loggedInUser = await this.entityService.getEntityData(
|
|
72
|
+
// let loggedInUser = await this.entityService.getEntityData(
|
|
73
|
+
// ENTITYTYPE_USER,
|
|
74
|
+
// requestedUser.userId,
|
|
75
|
+
// );
|
|
76
|
+
let loggedInUser = req.user.userData;
|
|
73
77
|
if (!entityType) {
|
|
74
78
|
throw new BadRequestException(
|
|
75
79
|
'Query parameter "entity_type" is required',
|
|
@@ -86,7 +90,14 @@ export class EntityController {
|
|
|
86
90
|
if (entityService) {
|
|
87
91
|
return res
|
|
88
92
|
.status(HttpStatus.OK)
|
|
89
|
-
.json(
|
|
93
|
+
.json(
|
|
94
|
+
await entityService.createEntity(
|
|
95
|
+
entityData,
|
|
96
|
+
loggedInUser as UserData,
|
|
97
|
+
null,
|
|
98
|
+
appcode,
|
|
99
|
+
),
|
|
100
|
+
);
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
|