mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: timeout issues
This commit is contained in:
@ -89,7 +89,8 @@ export const createSinglePlayerDocument = async (
|
|||||||
|
|
||||||
const pdfBytes = await doc.save();
|
const pdfBytes = await doc.save();
|
||||||
|
|
||||||
const documentToken = await prisma.$transaction(async (tx) => {
|
const documentToken = await prisma.$transaction(
|
||||||
|
async (tx) => {
|
||||||
const documentToken = nanoid();
|
const documentToken = nanoid();
|
||||||
|
|
||||||
// Fetch service user who will be the owner of the document.
|
// Fetch service user who will be the owner of the document.
|
||||||
@ -159,7 +160,12 @@ export const createSinglePlayerDocument = async (
|
|||||||
);
|
);
|
||||||
|
|
||||||
return documentToken;
|
return documentToken;
|
||||||
});
|
},
|
||||||
|
{
|
||||||
|
maxWait: 5000,
|
||||||
|
timeout: 30000,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
// Todo: Handle `downloadLink`
|
// Todo: Handle `downloadLink`
|
||||||
const template = createElement(DocumentSelfSignedEmailTemplate, {
|
const template = createElement(DocumentSelfSignedEmailTemplate, {
|
||||||
|
|||||||
Reference in New Issue
Block a user