diff --git a/app/graphql/resolvers/customers/invoice_custom_sections_resolver.rb b/app/graphql/resolvers/customers/invoice_custom_sections_resolver.rb index b50e3c7cf582..71110638b4b5 100644 --- a/app/graphql/resolvers/customers/invoice_custom_sections_resolver.rb +++ b/app/graphql/resolvers/customers/invoice_custom_sections_resolver.rb @@ -15,7 +15,7 @@ def resolve(customer_id:, page: nil, limit: nil) customer = current_organization.customers.find(customer_id) customer.applicable_invoice_custom_sections.page(page).per(limit) rescue ActiveRecord::RecordNotFound - not_found_error(resource: 'invoice') + not_found_error(resource: 'customer') end end