The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
todo, qoc
Timur Ercan242413471317
diff --git a/apps/web/pages/api/documents/[id]/send.ts b/apps/web/pages/api/documents/[id]/send.tsindex ff75f455b..5f0ae06a6 100644--- a/apps/web/pages/api/documents/[id]/send.ts+++ b/apps/web/pages/api/documents/[id]/send.ts@@ -45,6 +45,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {},});+ // todo check if recipient has an account and show them in their inbox or something(await recipients).forEach(async (recipient) => {await sendSigningRequestMail(recipient, document);});diff --git a/apps/web/pages/api/documents/index.ts b/apps/web/pages/api/documents/index.tsindex 294d6330e..7bf97206a 100644--- a/apps/web/pages/api/documents/index.ts+++ b/apps/web/pages/api/documents/index.ts@@ -49,19 +49,19 @@ async function getHandler(req: NextApiRequest, res: NextApiResponse) {let user = await getUserFromToken(req, res);if (!user) return;- return res.status(200).json(- await prisma.document.findMany({- where: {- userId: user?.id,- },- select: {- id: true,- title: true,- status: true,- Recipient: true,- },- })- );+ const documents = await prisma.document.findMany({+ where: {+ userId: user?.id,+ },+ select: {+ id: true,+ title: true,+ status: true,+ Recipient: true,+ },+ });++ return res.status(200).json(documents);}export default defaultHandler({diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsxindex ee0587913..f3224c17a 100644--- a/apps/web/pages/documents.tsx+++ b/apps/web/pages/documents.tsx@@ -133,6 +133,11 @@ const DocumentsPage: NextPageWithLayout = (req, res) => {</td><td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{formatDocumentStatus(document.status)}+ <p>+ <small>+ {document.recipients || 0}/{document.signed || 0}+ </small>+ </p></td><td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"><Link