mirror of
https://github.com/outline/outline.git
synced 2026-11-24 23:00:18 +03:00
fix: Remove manual revision deletion in document delete endpoint
This commit is contained in:
1 parent
f984ee0fcc
commit
b77af9bda3
1 file changed
-7
@@ -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