fix: test

This commit is contained in:
David Nguyen
2023-09-20 14:21:08 +10:00
parent 3361acdef3
commit e52aa8a12d

View File

@ -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,13 @@ export const createSinglePlayerDocument = async (
); );
return documentToken; return documentToken;
}); },
// Test values.
{
maxWait: 30000,
timeout: 30000,
},
);
// Todo: Handle `downloadLink` // Todo: Handle `downloadLink`
const template = createElement(DocumentSelfSignedEmailTemplate, { const template = createElement(DocumentSelfSignedEmailTemplate, {