From 3961402c70d0469df579f9529db4e875d9f4eac5 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Sun, 19 Mar 2023 11:48:32 +0100 Subject: [PATCH] comment --- apps/web/pages/api/documents/[id]/sign.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/pages/api/documents/[id]/sign.ts b/apps/web/pages/api/documents/[id]/sign.ts index c2b4e02d6..f4316cf2a 100644 --- a/apps/web/pages/api/documents/[id]/sign.ts +++ b/apps/web/pages/api/documents/[id]/sign.ts @@ -70,6 +70,8 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { }, }); + // Don't check for inserted, because currently no "sign again" scenarios exist and + // this is probably the expected behaviour in unclean states. const nonSignatureFields = await prisma.field.findMany({ where: { documentId: document.id,