mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +10:00
chore: finalize template settings
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
This commit is contained in:
@ -21,6 +21,14 @@ export const upsertTemplateDocumentMeta = async ({
|
||||
password,
|
||||
redirectUrl,
|
||||
}: CreateTemplateDocumentMetaOptions) => {
|
||||
const templateDocumentMeta = await prisma.templateDocumentMeta.findFirstOrThrow({
|
||||
where: {
|
||||
templateId: templateId,
|
||||
},
|
||||
include: {
|
||||
template: true,
|
||||
},
|
||||
});
|
||||
return await prisma.$transaction(async (tx) => {
|
||||
const upsertedTemplateDocumentMeta = await tx.templateDocumentMeta.upsert({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user