make transactions caming from vue client synchron, return after finished

This commit is contained in:
einhornimmond 2021-06-02 12:13:53 +02:00
parent 83af065acd
commit b7ba462a5d

View File

@ -356,9 +356,10 @@ namespace model {
}
}
UniLib::controller::TaskPtr transaction_send_task(new SendTransactionTask(Poco::AutoPtr<Transaction>(this, true)));
transaction_send_task->scheduleTask(transaction_send_task);
return true;
//UniLib::controller::TaskPtr transaction_send_task(new SendTransactionTask(Poco::AutoPtr<Transaction>(this, true)));
//transaction_send_task->scheduleTask(transaction_send_task);
return 1 == runSendTransaction();
//return true;
}
return false;
}
@ -509,6 +510,7 @@ namespace model {
auto pt = PendingTasksManager::getInstance();
pt->reportErrorToCommunityServer(Poco::AutoPtr<Transaction>(this, true), error_name, error_description);
addError(new ParamError(function_name, error_name, error_description));
}
return -1;
}
@ -563,6 +565,10 @@ namespace model {
if (!json_request.errorCount()) {
finishSuccess();
}
else {
getErrors(&json_request);
return -1;
}
return 1;
}