Commit c97654f2 authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

bugfix for fileshard download

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent c1ff55de
......@@ -506,6 +506,7 @@
['key', 'id'],
['file_id', 'file_id'],
['file_shard_id', 'file_shard_id'],
['file_repository_id', 'file_repository_id'],
['file_size', 'file_size'],
['file_secret_key', 'file_secret_key'],
['file_chunks', 'file_chunks'],
......
......@@ -613,7 +613,7 @@
return $q.resolve();
}
if (file.hasOwnProperty('file_shard_id')) {
if (file.hasOwnProperty('file_shard_id') && file['file_shard_id']) {
return download_file_from_shard(file);
} else {
return download_file_from_file_repository(file);
......
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