Skip to content

Commit

Permalink
fix(graphql/@sortBy): Str::camel() replaced to Str::studly() as…
Browse files Browse the repository at this point in the history
… it should be.
  • Loading branch information
LastDragon-ru committed Mar 1, 2024
1 parent b5a777e commit dc5b70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/src/SortBy/Sorters/DatabaseSorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function getAlias(EloquentBuilder|QueryBuilder $builder): string {
// create conflicts while adding additional clauses 🤞
$builder = $builder instanceof EloquentBuilder ? $builder->getQuery() : $builder;
$count = count($builder->orders ?? []) + count($builder->unionOrders ?? []);
$alias = Str::snake(Str::camel(Package::Name).'_'.Directive::Name).'__'.$count;
$alias = Str::snake(Str::studly(Package::Name).'_'.Directive::Name).'__'.$count;

return $alias;
}
Expand Down

0 comments on commit dc5b70f

Please sign in to comment.