Commit ddb46ef7 authored by hh1966's avatar hh1966
Browse files

Use value for format parameter

parent e68b2244
Pipeline #45270 canceled with stage
......@@ -350,12 +350,12 @@ module Chemotion
desc "Create export job"
params do
requires :collections, type: Array[Integer]
requires :format, type: String
requires :format, type: Symbol, values: [:json, :zip, :udm]
requires :nested, type: Boolean
end
post do
collection_ids = params[:collections].uniq
format = params[:format]
format = params[:format].to_s
nested = params[:nested] == true
if collection_ids.empty?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment