fix: PostObserver trigger published, submit cek kreator, toAll filter aktif, dead code

This commit is contained in:
2026-04-06 00:27:32 +07:00
parent a855ad92fb
commit 9c457bffde
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class PostObserver
{
public function updated(Post $post): void
{
if ($post->wasChanged('status') && $post->status === 'approved') {
if ($post->wasChanged('status') && $post->status === 'published') {
MemberPoint::firstOrCreate(
[
'user_id' => $post->author_id,