mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
feat: use server-actions for authoring flow
This change actually makes the authoring flow work for the most part by tying in emailing and more. We have also done a number of quality of life updates to simplify the codebase overall making it easier to continue work on the refresh.
This commit is contained in:
@ -124,16 +124,16 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
document.document = await insertImageInPDF(
|
||||
document.document,
|
||||
signatureDataUrl,
|
||||
field.positionX,
|
||||
field.positionY,
|
||||
field.positionX.toNumber(),
|
||||
field.positionY.toNumber(),
|
||||
field.page,
|
||||
);
|
||||
} else {
|
||||
document.document = await insertTextInPDF(
|
||||
document.document,
|
||||
signatureText ?? '',
|
||||
field.positionX,
|
||||
field.positionY,
|
||||
field.positionX.toNumber(),
|
||||
field.positionY.toNumber(),
|
||||
field.page,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user