This commit is contained in:
Scott E. Graves 2024-10-11 21:27:32 -05:00
parent 94b7950cf1
commit 21d4f4b78d

View File

@ -1019,8 +1019,6 @@ void file_manager::upload_completed(const file_upload_completed &evt) {
auto err = api_error_from_string(evt.get_result().get<std::string>());
if (err == api_error::success) {
upload_lookup_.erase(evt.get_api_path());
auto result =
utils::db::sqlite::db_delete{*db_.get(), upload_active_table}
.where("api_path")
@ -1032,6 +1030,8 @@ void file_manager::upload_completed(const file_upload_completed &evt) {
evt.get_source().get<std::string>(),
"failed to remove from upload_active table");
}
upload_lookup_.erase(evt.get_api_path());
} else {
bool exists{};
auto res = provider_.is_file(evt.get_api_path(), exists);