fix: Unarchiving a deleted draft adds to collection structure
This commit is contained in:
@@ -761,7 +761,7 @@ class Document extends ParanoidModel {
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.template && collection) {
|
||||
if (!this.template && this.publishedAt && collection) {
|
||||
await collection.addDocumentToStructure(this, undefined, {
|
||||
transaction,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user