Skip to content

Commit

Permalink
misc: Remove months restriction from gross revenues
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed Sep 10, 2024
1 parent b728655 commit 4fb084b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/graphql/resolvers/analytics/gross_revenues_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ class GrossRevenuesResolver < Resolvers::BaseResolver

argument :currency, Types::CurrencyEnum, required: false
argument :external_customer_id, String, required: false
argument :months, Integer, required: false

argument :expire_cache, Boolean, required: false

type Types::Analytics::GrossRevenues::Object.collection_type, null: false

def resolve(**args)
::Analytics::GrossRevenue.find_all_by(current_organization.id, **args.merge(months: 12))
::Analytics::GrossRevenue.find_all_by(current_organization.id, **args)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion schema.graphql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fb084b

Please sign in to comment.