Merge pull request 'Added USER_BASE_PATH env' (#118) from s.yahyaee/yara724-api:main into main

Reviewed-on: Yara724/api#118
This commit is contained in:
2026-06-13 15:30:21 +03:30
2 changed files with 7 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ CLIENT_NAME =
# 🌐 Application URLs
# ---------------------------------------------
URL =
USER_BASE_PATH =
BASE_URL_DEV =
# ---------------------------------------------
@@ -28,11 +29,13 @@ MONGO_DB_NAME =
MONGO_OPTIONS =
MONGO_TLS =
MONGO_TLS_ALLOW_INVALID_CERTS =
MONGO_URI = 'mongodb://${MONGO_USER}:${MONGO_PASS}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB_NAME}?${MONGO_OPTIONS}'
# ---------------------------------------------
# 🔐 Authentication / Security
# ---------------------------------------------
JWT_SECRET =
JWT_EXPIRY =
# ---------------------------------------------
# 🧩 SanHub Microservice

View File

@@ -46,11 +46,11 @@ export class SmsOrchestrationService implements OnModuleInit {
partyRole: "FIRST" | "SECOND",
): string {
const route = partyRole === "SECOND" ? "user2" : "user";
return `${process.env.URL}/${route}?token=${requestId}`;
return `${process.env.URL}/${process.env.USER_BASE_PATH}/${route}?token=${requestId}`;
}
buildClaimLink(claimRequestId: string): string {
return `${process.env.URL}/caseClaim?token=${claimRequestId}`;
return `${process.env.URL}/${process.env.USER_BASE_PATH}/caseClaim?token=${claimRequestId}`;
}
async sendInviteLink(