aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-08-25 11:19:20 +0200
committerTeddy Wing2017-08-25 11:19:20 +0200
commit1930ccb023cffe9aa752a0f03a73124a70398b6c (patch)
tree140d3b7c5a8ecec4738f1ed3282182ffabc705ae
parente88cd60efc8e613ea02c650537ecf5a50fae7f77 (diff)
downloadchouette-core-1930ccb023cffe9aa752a0f03a73124a70398b6c.tar.bz2
WorkbenchImportWorker#params: Remove unpermitted `referential_id`
This param isn't permitted by the controller and we're currently not using it for anything. It produces a warning message in the logs, so I figured we should remove it. We may want to change the architecture to create referentials outside of the API, and thus would have to add this param in, but until then it's not needed.
-rw-r--r--app/workers/workbench_import_worker.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/workers/workbench_import_worker.rb b/app/workers/workbench_import_worker.rb
index 63defee08..376addd6e 100644
--- a/app/workers/workbench_import_worker.rb
+++ b/app/workers/workbench_import_worker.rb
@@ -106,8 +106,7 @@ class WorkbenchImportWorker
%x{unzip -oqq #{file.path} -d #{dest}}
end
{ netex_import:
- { referential_id: @workbench_import.referential_id,
- workbench_id: @workbench_import.workbench_id,
+ { workbench_id: @workbench_import.workbench_id,
name: name,
file: HTTPService.upload(file, 'application/zip', name) } }
end