Skip to content

Commit a75bf48

Browse files
committed
feat: allow user to fork own documents
1 parent bb01dee commit a75bf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/backend/src/services/document/document.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class DocumentSerivce {
146146
const savedDocument = await this.documentRepository.createItem(document)
147147

148148
if (
149-
mutation.apps.some((app) => app.appId === appId && app.documentId === document.id) ||
149+
!mutation.apps.some((app) => app.appId === appId && app.documentId === document.id) ||
150150
mutation.source === EntitySourceType.Origin
151151
) {
152152
// ToDo: navie implementation

0 commit comments

Comments
 (0)