Skip to content

Commit

Permalink
fix: order user bon earnings correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Roardom committed Feb 2, 2025
1 parent dc8ba95 commit c351270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Livewire/UserEarnings.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ final public function updatingSearch(): void
#[Computed]
final public function bonEarnings(): \Illuminate\Database\Eloquent\Collection
{
return BonEarning::all()->keyBy('id');
return BonEarning::query()->orderBy('position')->get()->keyBy('id');
}

/**
Expand Down

0 comments on commit c351270

Please sign in to comment.