mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
check for already inserted fields
This commit is contained in:
@ -73,6 +73,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
||||
const nonSignatureFields = await prisma.field.findMany({
|
||||
where: {
|
||||
documentId: document.id,
|
||||
inserted: false,
|
||||
type: { in: [FieldType.DATE, FieldType.TEXT] },
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user