rez_core 3.1.140 → 3.1.142
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.d.ts +1 -6
- package/dist/module/integration/service/wrapper.service.js +1 -4
- 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 +1 -4
- package/src/module/workflow/repository/comm-template.repository.ts +5 -5
package/package.json
CHANGED
|
@@ -270,10 +270,7 @@ export class WrapperService {
|
|
|
270
270
|
`sendCommunicationWrapper SUCCESS. Result: ${JSON.stringify(result)}`,
|
|
271
271
|
);
|
|
272
272
|
|
|
273
|
-
return
|
|
274
|
-
success: true,
|
|
275
|
-
data: result,
|
|
276
|
-
};
|
|
273
|
+
return result;
|
|
277
274
|
} catch (error: any) {
|
|
278
275
|
this.logger.error(
|
|
279
276
|
`sendCommunicationWrapper ERROR: ${error.message}`,
|
|
@@ -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') {
|