fix: Remove manual revision deletion in document delete endpoint

This commit is contained in:
Tom Moor
2024-09-08 11:06:43 -04:00
parent f984ee0fcc
commit b77af9bda3
-7
View File
@@ -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 });