refactor
This commit is contained in:
parent
94b7950cf1
commit
21d4f4b78d
@ -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>());
|
auto err = api_error_from_string(evt.get_result().get<std::string>());
|
||||||
if (err == api_error::success) {
|
if (err == api_error::success) {
|
||||||
upload_lookup_.erase(evt.get_api_path());
|
|
||||||
|
|
||||||
auto result =
|
auto result =
|
||||||
utils::db::sqlite::db_delete{*db_.get(), upload_active_table}
|
utils::db::sqlite::db_delete{*db_.get(), upload_active_table}
|
||||||
.where("api_path")
|
.where("api_path")
|
||||||
@ -1032,6 +1030,8 @@ void file_manager::upload_completed(const file_upload_completed &evt) {
|
|||||||
evt.get_source().get<std::string>(),
|
evt.get_source().get<std::string>(),
|
||||||
"failed to remove from upload_active table");
|
"failed to remove from upload_active table");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upload_lookup_.erase(evt.get_api_path());
|
||||||
} else {
|
} else {
|
||||||
bool exists{};
|
bool exists{};
|
||||||
auto res = provider_.is_file(evt.get_api_path(), exists);
|
auto res = provider_.is_file(evt.get_api_path(), exists);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user