rez_core 3.1.139 → 3.1.141
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/integration/service/wrapper.service.js +2 -2
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/workflow/repository/comm-template.repository.js +4 -2
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/integration/service/wrapper.service.ts +2 -2
- package/src/module/workflow/repository/comm-template.repository.ts +5 -5
package/package.json
CHANGED
|
@@ -252,8 +252,8 @@ export class WrapperService {
|
|
|
252
252
|
levelType: effectiveLevelType,
|
|
253
253
|
app_code: appcode,
|
|
254
254
|
user_id: loggedInUser.id,
|
|
255
|
-
entity_type: entity.
|
|
256
|
-
entity_id: entity.
|
|
255
|
+
entity_type: entity.entity_type,
|
|
256
|
+
entity_id: entity.entity_id,
|
|
257
257
|
attachments: entity.attachments,
|
|
258
258
|
mediaUrl: entity.mediaUrl,
|
|
259
259
|
} as any;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Injectable, NotFoundException } from '@nestjs/common';
|
|
2
2
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
3
|
-
import { Workflow } from '../entity/workflow.entity';
|
|
4
3
|
import { DataSource, Repository } from 'typeorm';
|
|
5
4
|
import { CommTemplate } from '../entity/comm-template.entity';
|
|
6
5
|
import { TemplateAttach } from '../entity/template-attach-mapper.entity';
|
|
7
6
|
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
8
|
-
import { ComplianceRegistrationInquiriesInstance } from 'twilio/lib/rest/trusthub/v1/complianceRegistrationInquiries';
|
|
9
7
|
|
|
10
8
|
@Injectable()
|
|
11
9
|
export class CommTemplateRepository {
|
|
@@ -23,7 +21,7 @@ export class CommTemplateRepository {
|
|
|
23
21
|
action_id?: number,
|
|
24
22
|
loggedInUser?,
|
|
25
23
|
) {
|
|
26
|
-
const { organization_id } = loggedInUser;
|
|
24
|
+
const { organization_id, level_id, level_type } = loggedInUser;
|
|
27
25
|
|
|
28
26
|
let is_template: number | undefined;
|
|
29
27
|
|
|
@@ -47,14 +45,16 @@ export class CommTemplateRepository {
|
|
|
47
45
|
`UPDATE cr_wf_comm_template
|
|
48
46
|
SET is_template = ?
|
|
49
47
|
WHERE mapped_entity_type = ?
|
|
50
|
-
AND organization_id =
|
|
51
|
-
[is_template, entity_type, organization_id],
|
|
48
|
+
AND organization_id = ? AND level_id = ? AND level_type=?`,
|
|
49
|
+
[is_template, entity_type, organization_id, level_id, level_type],
|
|
52
50
|
);
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
const whereCondition: any = {
|
|
56
54
|
// mapped_entity_type: entity_type,
|
|
57
55
|
organization_id,
|
|
56
|
+
level_id,
|
|
57
|
+
level_type,
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
if (typeof is_template !== 'undefined') {
|