mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-12 12:47:40 +02:00
fix: widgets are not embeding in pdf using API
This commit is contained in:
@@ -14,6 +14,7 @@ export default async function draftDocument(request, response) {
|
||||
const SendinOrder = request.body.sendInOrder || false;
|
||||
// console.log('fileData ', fileData);
|
||||
const protocol = customAPIurl();
|
||||
const baseUrl = new URL(process.env.SERVER_URL);
|
||||
|
||||
try {
|
||||
const reqToken = request.headers['x-api-token'];
|
||||
@@ -135,7 +136,7 @@ export default async function draftDocument(request, response) {
|
||||
}
|
||||
return response.json({
|
||||
objectId: res.id,
|
||||
url: protocol + '/load/signmicroapp/placeholdersign/' + res.id,
|
||||
url: `${baseUrl.origin}/placeholdersign/${res.id}`,
|
||||
});
|
||||
} else {
|
||||
if (request.posthog) {
|
||||
|
||||
Reference in New Issue
Block a user