Class: S3::RecordsController
- Inherits:
-
API::Admin::BaseController
- Object
- API::Admin::BaseController
- S3::RecordsController
- Defined in:
- app/controllers/s3/records_controller.rb
Overview
ApplicationController
Instance Method Summary collapse
-
#deleted_records ⇒ Object
queries files split per date and environment.
-
#legacy_deleted_records ⇒ Object
queries files split per date and table.
Instance Method Details
#deleted_records ⇒ Object
queries files split per date and environment
6 7 8 9 |
# File 'app/controllers/s3/records_controller.rb', line 6 def deleted_records data = S3::NewDeletedRecordsService.get_records(**slice_params(:db_table, :start_date, :end_date, :env_id)) render json: {deleted_records: data} end |
#legacy_deleted_records ⇒ Object
queries files split per date and table
12 13 14 15 |
# File 'app/controllers/s3/records_controller.rb', line 12 def legacy_deleted_records data = S3::OldDeletedRecordsService.get_records(**slice_params(:db_table, :start_date, :end_date, :env_id, :env_name)) render json: {deleted_records: data} end |