We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb6469 commit 7960edaCopy full SHA for 7960eda
src/Actions/SyncBlocksAction.php
@@ -37,7 +37,9 @@ public function execute(Collection $blocks): array
37
$deleted = array_diff($ids['current'], $ids['records']);
38
39
if (count($deleted)) {
40
- $models->filter(fn (Block $block) => in_array($block->getKey(), $deleted))->each->delete();
+ $models
41
+ ->filter(fn (Block $block) => in_array($block->getKey(), $deleted))
42
+ ->each(fn (Block $block) => $block->forceDelete());
43
44
$changes['deleted'] = $deleted;
45
}
0 commit comments