From d8d1d825163928d8ff282a07159987970c5d8d33 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 22 Oct 2019 18:14:46 +0200 Subject: [PATCH] Export should always include deleted across pages --- app/controllers/export_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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