diff --git a/app/controllers/observations/inat_imports_controller.rb b/app/controllers/observations/inat_imports_controller.rb index 99ed6192c6..3715d00470 100644 --- a/app/controllers/observations/inat_imports_controller.rb +++ b/app/controllers/observations/inat_imports_controller.rb @@ -155,8 +155,9 @@ def import_requested_observations last_import_id = 0 loop do page = + # make an iNat API search observations request inat_search_observations( - ids: inat_ids, id_above: last_import_id, + id: inat_ids, id_above: last_import_id, user_login: @inat_import.inat_username ) break if page_empty?(page) @@ -191,7 +192,7 @@ def inat_id_list # multiple times. def inat_search_observations(**args) query_args = { - ids: nil, id_above: nil, only_id: false, per_page: 200, + id: nil, id_above: nil, only_id: false, per_page: 200, order: "asc", order_by: "id", # prevents user from importing others' obss user_login: nil, iconic_taxa: ICONIC_TAXA