fix(membership): mengubah total_points menjadi tier_points
This commit is contained in:
parent
bc7a4ff758
commit
5c9fd73bd3
@ -115,7 +115,6 @@ public function auth()
|
||||
Membership::create([
|
||||
'user_id' => $user->id,
|
||||
'tier_id' => $tier->id,
|
||||
'total_points' => 0,
|
||||
]);
|
||||
|
||||
ReferralCode::create([
|
||||
|
||||
@ -31,7 +31,7 @@ public function run(): void
|
||||
Membership::create([
|
||||
'user_id' => $userId,
|
||||
'tier_id' => $tier->id,
|
||||
'total_points' => $totalPoints,
|
||||
'tier_points' => $totalPoints,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<flux:callout.heading>
|
||||
{{ auth()->user()?->membership?->tier?->name }}
|
||||
<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.text>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user