forked from Yara724/api
fix: support user panel base path in SMS links
This commit is contained in:
@@ -2885,19 +2885,26 @@ export class RequestManagementService {
|
||||
?.phoneNumber;
|
||||
const secondPhone = (req.parties?.[secondIdx]?.person as any)
|
||||
?.phoneNumber;
|
||||
const baseUrl = process.env.URL;
|
||||
const token = String(req._id);
|
||||
const targets = [
|
||||
firstPhone
|
||||
? {
|
||||
receptor: firstPhone,
|
||||
link: `${baseUrl}/user?token=${token}`,
|
||||
link: this.smsOrchestrationService.buildBlamePartyLink(
|
||||
token,
|
||||
"FIRST",
|
||||
"v1",
|
||||
),
|
||||
}
|
||||
: null,
|
||||
secondPhone
|
||||
? {
|
||||
receptor: secondPhone,
|
||||
link: `${baseUrl}/user2?token=${token}`,
|
||||
link: this.smsOrchestrationService.buildBlamePartyLink(
|
||||
token,
|
||||
"SECOND",
|
||||
"v1",
|
||||
),
|
||||
}
|
||||
: null,
|
||||
].filter(
|
||||
|
||||
Reference in New Issue
Block a user