fix: 🔥 removal of code that restores all archived pages associated with the restored configuration
This commit is contained in:
parent
8319b41e41
commit
cd5717a2f1
1 changed files with 0 additions and 9 deletions
|
|
@ -89,15 +89,6 @@ class PageConfig extends Model implements TranslatableModel
|
|||
static::deleted(function (self $model) {
|
||||
$model->pages()->delete();
|
||||
});
|
||||
static::restored(function (self $model) {
|
||||
$model->pages()
|
||||
->onlyTrashed()
|
||||
->get()
|
||||
->map(function (DynamicPage $dynamicPageModel) {
|
||||
$dynamicPageModel->status = PageStatusEnum::draft;
|
||||
$dynamicPageModel->restore();
|
||||
});
|
||||
});
|
||||
static::forceDeleted(function (self $model) {
|
||||
$model->pages()->forceDelete();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue