fix: gunakan author_id (bukan user_id) di PostObserver dan MemberPointSeeder
This commit is contained in:
@@ -11,7 +11,7 @@ class PostObserver
|
||||
{
|
||||
if ($post->wasChanged('status') && $post->status === 'published') {
|
||||
MemberPoint::create([
|
||||
'user_id' => $post->user_id,
|
||||
'user_id' => $post->author_id,
|
||||
'points' => 5,
|
||||
'reason' => "Artikel dipublikasi: {$post->title}",
|
||||
'source_type' => 'post',
|
||||
|
||||
Reference in New Issue
Block a user