#235 Delete small objects for game_object, tournament_object, match_object,... #655

Merged
serkixenos merged 20 commits from bug/235-corrupt-chain-file into develop 2022-02-28 22:56:21 +00:00
Showing only changes of commit a685a63453 - Show all commits

View file

@ -171,7 +171,6 @@ fc::variants bookie_api_impl::get_objects(const vector<object_id_type>& ids) con
const auto &idx = db->get_index_type<bet_object_index>();
const auto &aidx = dynamic_cast<const base_primary_index &>(idx);
const auto &refs = aidx.get_secondary_index<detail::persistent_bet_index>();
auto tmp = id.as<bet_id_type>();
auto iter = refs.internal.find(id.as<bet_id_type>());
if (iter != refs.internal.end())
return iter->second.ephemeral_bet_object.to_variant();