rez_core 2.2.28 → 2.2.29

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.2.28",
3
+ "version": "2.2.29",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -73,7 +73,8 @@ export class UserService extends EntityServiceImpl {
73
73
  loggedInUser?.organization_id || 0,
74
74
  );
75
75
 
76
- userData.name = (userData.first_name || '') + (userData.last_name || '');
76
+ userData.name =
77
+ (userData.first_name || '') + ' ' + (userData.last_name || '');
77
78
  userData.password = EncryptUtilService.encryptGCM(
78
79
  userData.password || 'Admin@123',
79
80
  this.masterKey,
@@ -21,8 +21,8 @@ export class FormMasterRepository {
21
21
  .createQueryBuilder()
22
22
  .select(['fm.id', 'fm.form_name'])
23
23
  .from('cr_form_master', 'fm')
24
- .where('fm.organization_id = :orgId', { orgId: organization_id })
25
- .andWhere('fm.source_entity_type = :sourceEntityType', {
24
+ // .where('fm.organization_id = :orgId', { orgId: organization_id })
25
+ .where('fm.source_entity_type = :sourceEntityType', {
26
26
  sourceEntityType: source_entity_type,
27
27
  })
28
28
  .getRawMany();
@@ -12,14 +12,14 @@ export class ActionCategoryService extends EntityServiceImpl {
12
12
  async getActionsCat(loggedInUser: UserData, entity_type: string) {
13
13
  const { organization_id } = loggedInUser;
14
14
 
15
+ console.log(entity_type, 'entity_type in action category service');
16
+
15
17
  const result = await this.dataSource.query(
16
18
  `
17
19
  SELECT id, name
18
20
  FROM cr_wf_action_category
19
- WHERE mapped_entity_type = ?
20
- AND organization_id = ?
21
- `,
22
- [entity_type, organization_id],
21
+ WHERE mapped_entity_type = ?`,
22
+ [entity_type],
23
23
  );
24
24
 
25
25
  return result.map((row: any) => ({
@@ -50,9 +50,9 @@ export class ActionCategoryService extends EntityServiceImpl {
50
50
  `
51
51
  SELECT *
52
52
  FROM cr_wf_action_category
53
- WHERE organization_id = ? AND id = ?
53
+ WHERE id = ?
54
54
  `,
55
- [organization_id, action_cat_id],
55
+ [action_cat_id],
56
56
  );
57
57
 
58
58
  return result;