FEATURE: Log entity export in staff logs

This commit is contained in:
Vinoth Kannan
2018-09-19 03:16:45 +05:30
parent e95d6a12c5
commit 9281b72308
5 changed files with 32 additions and 2 deletions

View File

@ -5,6 +5,7 @@ class ExportCsvController < ApplicationController
def export_entity
guardian.ensure_can_export_entity!(export_params[:entity])
Jobs.enqueue(:export_csv_file, entity: export_params[:entity], user_id: current_user.id, args: export_params[:args])
StaffActionLogger.new(current_user).log_entity_export(export_params[:entity])
render json: success_json
end