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