fix server build
This commit is contained in:
1 parent
a3f5de099f
commit
d04f9f4e96
1 file changed
+4
-2
@@ -215,7 +215,8 @@ void PositionServiceServer::update_manual_fill(
|
||||
auto *this_resp = resp.add_response();
|
||||
auto id = std::to_string(mf.record_id());
|
||||
|
||||
auto [found,v] = me->manual_fills_store->retrieve_one(manual_fills_ns,id);
|
||||
auto p = me->manual_fills_store->retrieve_one(manual_fills_ns,id);
|
||||
auto found = p.first;
|
||||
if (!found) {
|
||||
this_resp->set_ok(false);
|
||||
this_resp->set_msg("Could not find record");
|
||||
@@ -241,7 +242,8 @@ void PositionServiceServer::remove_manual_fill(
|
||||
auto *this_resp = resp.add_response();
|
||||
auto id = std::to_string(mf.record_id());
|
||||
|
||||
auto [found,v] = me->manual_fills_store->retrieve_one(manual_fills_ns,id);
|
||||
auto p = me->manual_fills_store->retrieve_one(manual_fills_ns,id);
|
||||
auto found = p.first;
|
||||
if (!found) {
|
||||
this_resp->set_ok(false);
|
||||
this_resp->set_msg("Could not find record");
|
||||
|
||||
Reference in new issue
Block a user