Skip to content

Commit

Permalink
Properly ignore the deleting handler (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfriars authored Feb 1, 2025
1 parent ceeba23 commit 8d1b15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/SyncsPublishing.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function syncPublishingFrom(Publishable&Model $from): void
$this->save();

if ($from->isPublished() && $this->{$this->shouldDeleteColumn()}) {
$this->withoutHandler('deleting', fn () => $this->delete(), [static::class]);
$this->withoutHandler('deleting', fn () => $this->delete(), [SyncsPublishing::class]);
}
}

Expand Down

0 comments on commit 8d1b15c

Please sign in to comment.