fix: timeout issues

This commit is contained in:
David Nguyen
2023-09-20 15:30:57 +10:00
committed by Mythie
parent 34232c79e5
commit db1d6478a1

View File

@ -89,7 +89,8 @@ export const createSinglePlayerDocument = async (
const pdfBytes = await doc.save();
const documentToken = await prisma.$transaction(async (tx) => {
const documentToken = await prisma.$transaction(
async (tx) => {
const documentToken = nanoid();
// Fetch service user who will be the owner of the document.
@ -159,7 +160,12 @@ export const createSinglePlayerDocument = async (
);
return documentToken;
});
},
{
maxWait: 5000,
timeout: 30000,
},
);
// Todo: Handle `downloadLink`
const template = createElement(DocumentSelfSignedEmailTemplate, {