rez_core 2.2.147 → 2.2.148
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/layout_preference/controller/layout_preference.controller.d.ts +3 -1
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +3 -1
- package/dist/module/layout_preference/service/layout_preference.service.js +6 -1
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/layout_preference/service/layout_preference.service.ts +10 -6
package/package.json
CHANGED
|
@@ -15,8 +15,7 @@ export class LayoutPreferenceService extends EntityServiceImpl {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
async createEntity(entityData: BaseEntity, loggedInUser: UserData) {
|
|
18
|
-
|
|
19
|
-
const { mapped_entity_type,type } = entityData as any;
|
|
18
|
+
const { mapped_entity_type, type } = entityData as any;
|
|
20
19
|
const userId = loggedInUser?.id;
|
|
21
20
|
|
|
22
21
|
if (userId === undefined) {
|
|
@@ -30,7 +29,7 @@ export class LayoutPreferenceService extends EntityServiceImpl {
|
|
|
30
29
|
loggedInUser.level_id,
|
|
31
30
|
loggedInUser.level_type,
|
|
32
31
|
userId,
|
|
33
|
-
type
|
|
32
|
+
type,
|
|
34
33
|
);
|
|
35
34
|
|
|
36
35
|
console.log(existingLayoutPreference, 'existingLayoutPreference');
|
|
@@ -57,7 +56,7 @@ export class LayoutPreferenceService extends EntityServiceImpl {
|
|
|
57
56
|
mapped_entity_type,
|
|
58
57
|
mapped_level_id,
|
|
59
58
|
mapped_level_type,
|
|
60
|
-
type
|
|
59
|
+
type,
|
|
61
60
|
) {
|
|
62
61
|
const layoutPreference =
|
|
63
62
|
await this.layoutPreferenceRepository.findByEntityUserId(
|
|
@@ -65,10 +64,15 @@ export class LayoutPreferenceService extends EntityServiceImpl {
|
|
|
65
64
|
mapped_level_id,
|
|
66
65
|
mapped_level_type,
|
|
67
66
|
user_id,
|
|
68
|
-
type
|
|
67
|
+
type,
|
|
69
68
|
);
|
|
70
69
|
|
|
71
|
-
|
|
70
|
+
if (layoutPreference) {
|
|
71
|
+
return layoutPreference;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
mapped_json: {},
|
|
75
|
+
};
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
async getColumnValue(
|