date format select added

This commit is contained in:
Ollie Halliday
2023-10-03 14:39:00 +01:00
parent 4bd0cfd283
commit 9139f3a3b4
4 changed files with 40 additions and 3 deletions

View File

@ -58,7 +58,7 @@ export const signFieldWithToken = async ({
const typedSignature = isSignatureField && !isBase64 ? value : undefined;
if (field.type === FieldType.DATE) {
customText = DateTime.now().toFormat('yyyy-MM-dd hh:mm a');
customText = DateTime.now().toFormat(value);
}
await prisma.field.update({