Update apps/backend/src/app/api/latest/internal/external-db-sync/poller/route.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
aadesh18 2025-12-01 01:44:08 -05:00 committed by GitHub
parent dcda40246f
commit 9e954b9603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,9 +74,7 @@ export const GET = createSmartRouteHandler({
const options = request.qstashOptions as any;
const baseUrl = getEnvVariable("NEXT_PUBLIC_STACK_API_URL");
let fullUrl = options.url.startsWith("http")
? options.url
: new URL(options.url, baseUrl).toString();
let fullUrl = new URL(options.url, baseUrl).toString();
if (getNodeEnvironment().includes("development") || getNodeEnvironment().includes("test")) {
const url = new URL(fullUrl);