Skip to content

Commit

Permalink
pretty print
Browse files Browse the repository at this point in the history
  • Loading branch information
annvelents committed Jan 9, 2025
1 parent 13c4a05 commit 8245e39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/graphql/resolvers/invoice_custom_sections_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class InvoiceCustomSectionsResolver < Resolvers::BaseResolver

def resolve(page: nil, limit: nil)
current_organization.invoice_custom_sections
.joins('LEFT JOIN invoice_custom_section_selections ON invoice_custom_sections.id = invoice_custom_section_selections.invoice_custom_section_id AND invoice_custom_section_selections.customer_id is NULL')
.joins('LEFT JOIN invoice_custom_section_selections ON invoice_custom_sections.id = invoice_custom_section_selections.invoice_custom_section_id
AND invoice_custom_section_selections.customer_id is NULL')
.order(
Arel.sql('CASE WHEN invoice_custom_section_selections.id IS NOT NULL THEN 0 ELSE 1 END'),
:name
Expand Down

0 comments on commit 8245e39

Please sign in to comment.