From b77af9bda3d3d63ff101b4a378eefb6ed82fe2f0 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 8 Sep 2024 11:06:43 -0400 Subject: [PATCH] fix: Remove manual revision deletion in document delete endpoint --- server/models/Document.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/models/Document.ts b/server/models/Document.ts index 2829be2bf4..3f7af3d009 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -1063,13 +1063,6 @@ class Document extends ParanoidModel< }); } - await Revision.destroy({ - where: { - documentId: this.id, - }, - transaction, - }); - this.lastModifiedById = user.id; this.updatedBy = user; return this.save({ transaction });