Skip to content

The Open Source DocuSign Alternative.

fix: build errors from merge

Mythie4cb0d6999d7e
diff --git a/packages/lib/server-only/document/update-title.ts b/packages/lib/server-only/document/update-title.ts
index eab7f1f28..43e7c2d91 100644
--- a/packages/lib/server-only/document/update-title.ts
+++ b/packages/lib/server-only/document/update-title.ts
@@ -26,27 +26,26 @@ export const updateTitle = async ({
},
});
- return await prisma.$transaction(async (tx) => {
- const document = await tx.document.findFirstOrThrow({
- where: {
- id: documentId,
- ...(teamId
- ? {
- team: {
- id: teamId,
- members: {
- some: {
- userId,
- },
+ const document = await prisma.document.findFirstOrThrow({
+ where: {
+ id: documentId,
+ ...(teamId
+ ? {
+ team: {
+ id: teamId,
+ members: {
+ some: {
+ userId,
},
},
- }
- : {
- userId,
- teamId: null,
- }),
- },
- });
+ },
+ }
+ : {
+ userId,
+ teamId: null,
+ }),
+ },
+ });
if (document.title === title) {
return document;