1
0
forked from Yara724/api
This commit is contained in:
SepehrYahyaee
2026-05-10 14:15:38 +03:30
parent 3fb90cf1c9
commit 186f6c5837
2 changed files with 6 additions and 4 deletions

View File

@@ -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 };
} }

View File

@@ -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,
}); });
} }