mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Remove manual revision deletion in document delete endpoint
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user