mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +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({
|
const nonSignatureFields = await prisma.field.findMany({
|
||||||
where: {
|
where: {
|
||||||
documentId: document.id,
|
documentId: document.id,
|
||||||
|
inserted: false,
|
||||||
type: { in: [FieldType.DATE, FieldType.TEXT] },
|
type: { in: [FieldType.DATE, FieldType.TEXT] },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user