diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index 3c8c85660..a856dbaac 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -141,7 +141,7 @@ def organizations page_num = 2 while page_num <= total_pages page = { size: 1000, number: page_num } - response = Client.query(nil, page: page) + response = Client.query(nil, page: page, include_deleted: true) clients = clients + response.records.to_a page_num += 1 end