rez_core 2.2.64 → 2.2.66

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.64",
3
+ "version": "2.2.66",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -52,7 +52,7 @@ export class ResolverService {
52
52
  resolvedEntityData[field] = resolvedValues;
53
53
  } else {
54
54
  const [item] = await this.dataSource.query(
55
- `SELECT * FROM ${tableName} WHERE code = ? AND organization_id = ?`,
55
+ `SELECT * FROM ${tableName} WHERE id = ? AND organization_id = ?`,
56
56
  [codeValue, loggedInUser.organization_id],
57
57
  );
58
58
  resolvedEntityData[field] =
@@ -7,46 +7,46 @@ import { UserData } from 'src/module/user/entity/user.entity';
7
7
 
8
8
  function enrichData(category: string, logData: any): any {
9
9
  switch (category) {
10
- case 'stage':
10
+ case 'STAGE':
11
11
  logData.color = '#f63d68';
12
12
  logData.icon = 'stage';
13
13
  break;
14
- case 'interaction':
14
+ case 'INTERACTION':
15
15
  logData.color = '#7a5af8';
16
16
  logData.icon = 'interaction';
17
17
  break;
18
- case 'form':
18
+ case 'FORM':
19
19
  logData.color = '#eaaa08';
20
20
  logData.icon = 'form';
21
21
  break;
22
- case 'assign':
22
+ case 'ASSIGN':
23
23
  logData.color = '#16b364';
24
24
  logData.icon = 'assign';
25
25
  break;
26
- case 'meeting':
26
+ case 'MEETING':
27
27
  logData.color = '#f63d68';
28
28
  logData.icon = 'meeting';
29
29
  break;
30
- case 'process':
30
+ case 'PROCESS':
31
31
  logData.color = '#f63d68';
32
32
  logData.icon = 'process';
33
33
  break;
34
- case 'status':
34
+ case 'STATUS':
35
35
  logData.color = '#f63d68';
36
36
  logData.icon = 'status';
37
37
  break;
38
- case 'task':
38
+ case 'TASK':
39
39
  logData.color = '#06aed4';
40
40
  logData.icon = 'task';
41
41
  break;
42
- case 'lead':
42
+ case 'LEAD':
43
43
  logData.color = '#f63d68';
44
44
  logData.icon = 'lead';
45
45
  break;
46
46
 
47
47
  default:
48
48
  logData.color = '#ff0000';
49
- logData.icon = 'task';
49
+ logData.icon = 'DEFAULT';
50
50
  }
51
51
 
52
52
  return logData;
@@ -62,7 +62,7 @@ export class ActivityLogService extends EntityServiceImpl {
62
62
  logData: any,
63
63
  loggedInUser: UserData,
64
64
  ): Promise<ActivityLog[]> {
65
- const storeData = enrichData(logData.category, logData);
65
+ const storeData = enrichData(logData.category.toUpperCase(), logData);
66
66
  storeData.entity_type = 'ACLG';
67
67
  return super.createEntity(storeData, loggedInUser);
68
68
  }