diff options
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/v1/netex_imports_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/api/v1/netex_imports_controller.rb b/app/controllers/api/v1/netex_imports_controller.rb index cb863b9fc..046802ff9 100644 --- a/app/controllers/api/v1/netex_imports_controller.rb +++ b/app/controllers/api/v1/netex_imports_controller.rb @@ -28,9 +28,10 @@ module Api end def create_netex_import - attributes = netex_import_params + attributes = netex_import_params.merge creator: "Webservice" + if @new_referential.persisted? - attributes = attributes.merge referential_id: @new_referential.id, creator: "Webservice" + attributes = attributes.merge referential_id: @new_referential.id else attributes = attributes.merge status: "failed" end |
