fix books table

This commit is contained in:
CJ Cobb
2021-01-27 15:39:31 -05:00
parent f8185d8b8a
commit b3731f54e0
7 changed files with 97 additions and 34 deletions

View File

@@ -93,6 +93,7 @@ doBookOffers(
CassandraFlatMapBackend const& backend,
std::shared_ptr<PgPool>& pool)
{
std::cout << "enter" << std::endl;
boost::json::object response;
auto sequence = ledgerSequenceFromRequest(request, pool);
@@ -292,7 +293,8 @@ doBookOffers(
}
std::uint32_t limit = 2048;
if (request.at("limit").kind() == boost::json::kind::int64)
if (request.contains("limit") and
request.at("limit").kind() == boost::json::kind::int64)
limit = request.at("limit").as_int64();
ripple::Book book = {