From bf80aa12a7f2e0b08a1ec5e296922d4234e99600 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 10 Oct 2018 17:00:53 +0200 Subject: [PATCH] Fix failing test [SCI-2765] --- app/serializers/api/v1/repository_asset_value_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/api/v1/repository_asset_value_serializer.rb b/app/serializers/api/v1/repository_asset_value_serializer.rb index be1373efb..4c44f97de 100644 --- a/app/serializers/api/v1/repository_asset_value_serializer.rb +++ b/app/serializers/api/v1/repository_asset_value_serializer.rb @@ -24,7 +24,7 @@ module Api object.asset.presigned_url(download: true) else # separate api endpoint for local files download is needed - download_asset_path(object.asset.id) + object.asset.file.url end end end