Skip to content

Commit

Permalink
fix using wrong id at findUnique for persistor
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Jan 25, 2025
1 parent 0fbc770 commit 8c95a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/yjs/v2/persistors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class DocumentPersistor implements Persistor {
private async getYjsDoc(yDoc: WSSharedDocV2, tx?: PrismaTransaction) {
const docWithYjsDoc = await (tx ?? prisma()).document.findUnique({
select: { id: true, yjsDocument: { select: { id: true, clock: true } } },
where: { id: this.docId },
where: { id: this.documentId },
})
if (!docWithYjsDoc) {
return null
Expand Down

0 comments on commit 8c95a3a

Please sign in to comment.