fix(membership): mengubah total_points menjadi tier_points

This commit is contained in:
Yoga Pangestu 2025-11-12 12:06:10 +07:00
parent bc7a4ff758
commit 5c9fd73bd3
3 changed files with 2 additions and 3 deletions

View File

@ -115,7 +115,6 @@ public function auth()
Membership::create([ Membership::create([
'user_id' => $user->id, 'user_id' => $user->id,
'tier_id' => $tier->id, 'tier_id' => $tier->id,
'total_points' => 0,
]); ]);
ReferralCode::create([ ReferralCode::create([

View File

@ -31,7 +31,7 @@ public function run(): void
Membership::create([ Membership::create([
'user_id' => $userId, 'user_id' => $userId,
'tier_id' => $tier->id, 'tier_id' => $tier->id,
'total_points' => $totalPoints, 'tier_points' => $totalPoints,
]); ]);
} }
} }

View File

@ -8,7 +8,7 @@
<flux:callout.heading> <flux:callout.heading>
{{ auth()->user()?->membership?->tier?->name }} {{ auth()->user()?->membership?->tier?->name }}
<flux:badge color="emerald" size="sm" inset="top bottom"> <flux:badge color="emerald" size="sm" inset="top bottom">
{{ auth()->user()?->membership?->total_points }} Poin</flux:badge> {{ auth()->user()?->membership?->tier_points }} Poin</flux:badge>
</flux:callout.heading> </flux:callout.heading>
<flux:callout.text> <flux:callout.text>