forked from Yara724/api
YARA-884
This commit is contained in:
@@ -1429,6 +1429,7 @@ export class RequestManagementService {
|
||||
);
|
||||
await this.smsOrchestrationService.sendInviteLink(
|
||||
secondPartyPhone,
|
||||
req.publicId,
|
||||
url,
|
||||
);
|
||||
return {
|
||||
@@ -1477,7 +1478,7 @@ export class RequestManagementService {
|
||||
frontendRoute,
|
||||
requestId,
|
||||
);
|
||||
await this.smsOrchestrationService.sendInviteLink(phoneNumber, url);
|
||||
await this.smsOrchestrationService.sendInviteLink(phoneNumber, req.publicId, url);
|
||||
|
||||
return {
|
||||
requestId: req._id,
|
||||
@@ -2399,7 +2400,7 @@ export class RequestManagementService {
|
||||
frontendRoutes,
|
||||
requestId,
|
||||
);
|
||||
await this.smsOrchestrationService.sendInviteLink(phoneNumber, URL);
|
||||
await this.smsOrchestrationService.sendInviteLink(phoneNumber, request.publicId, URL);
|
||||
|
||||
return { url: URL };
|
||||
}
|
||||
|
||||
@@ -50,11 +50,12 @@ export class SmsOrchestrationService implements OnModuleInit {
|
||||
return `${process.env.URL}/caseClaim?token=${claimRequestId}`;
|
||||
}
|
||||
|
||||
async sendInviteLink(phoneNumber: string, link: string): Promise<boolean> {
|
||||
async sendInviteLink(phoneNumber: string, publicId: string, link: string): Promise<boolean> {
|
||||
return this.sendTemplate({
|
||||
template: "yara724-invite-link",
|
||||
receptor: phoneNumber,
|
||||
token: link,
|
||||
token: publicId,
|
||||
token2: link,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user