Commit 277396b9 authored by taivo's avatar taivo
Browse files

KEEL-59: return files as a list of objects not as an object where property...

KEEL-59: return files as a list of objects not as an object where property name is file key and each property is an object itself.
parent ad80b86b
......@@ -183,13 +183,13 @@ function SessionService() {
response.data = session.data;
}
var filesList = {};
var filesList = [];
for(var i in session.outputFiles){
filesList[i] = {
filesList.push({
key: i,
fileName: session.outputFiles[i].fileName,
contentType: session.outputFiles[i].contentType
};
});
}
response.data.files = filesList;
......
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