From b2d5f3a75cb6ec25353b9c3c951e89b96f737dce Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 16 Aug 2021 02:10:33 +0200
Subject: [PATCH] WIP: files

---
 src/caosdb/transaction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caosdb/transaction.cpp b/src/caosdb/transaction.cpp
index bd85a85..398d462 100644
--- a/src/caosdb/transaction.cpp
+++ b/src/caosdb/transaction.cpp
@@ -324,7 +324,7 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode {
   }
 
   // file download afterwards
-  if (status.GetCode() == StatusCode::SUCCESS && !download_files.empty()) {
+  if (status.GetCode() == StatusCode::EXECUTING && !download_files.empty()) {
     // run over all retrieved entities and get the download_id
     for (auto sub_response : *(response->mutable_responses())) {
       if (sub_response.transaction_response_case() ==
-- 
GitLab