Skip to content

Commit

Permalink
Fix: review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bzy107 committed Jan 2, 2025
1 parent 77874d0 commit 3726be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/actions/src/Exports/Jobs/PrepareCsvExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function handle(): void

if ($databaseConnection->getDriverName() === 'pgsql') {
$originalOrders = collect($query->getQuery()->orders)
->reject(fn (array $order): bool => in_array($order['column'] ?? null, [$qualifiedKeyName]))
->reject(fn (array $order): bool => ($order['column'] ?? null) === $qualifiedKeyName)
->unique('column');

/** @var array<string, mixed> $originalBindings */
Expand Down

0 comments on commit 3726be6

Please sign in to comment.