Update report controller to use the new reports builder

This commit is contained in:
Pranav
2024-05-15 20:37:54 -07:00
parent cbdc5b1ab0
commit 08834b6016
5 changed files with 183 additions and 1 deletions
@@ -5,7 +5,7 @@ class Api::V2::Accounts::ReportsController < Api::V1::Accounts::BaseController
before_action :check_authorization
def index
builder = V2::ReportBuilder.new(Current.account, report_params)
builder = V2::NewReportBuilder.new(Current.account, report_params)
data = builder.build
render json: data
end