Fix #25 - listing all assets when given empty string
This commit is contained in:
parent
666ffd07ae
commit
d57c0e0031
1 changed files with 4 additions and 0 deletions
|
|
@ -245,6 +245,10 @@ namespace graphene { namespace app {
|
||||||
result.reserve(limit);
|
result.reserve(limit);
|
||||||
|
|
||||||
auto itr = assets_by_symbol.lower_bound(lower_bound_symbol);
|
auto itr = assets_by_symbol.lower_bound(lower_bound_symbol);
|
||||||
|
|
||||||
|
if( lower_bound_symbol == "" )
|
||||||
|
itr = assets_by_symbol.begin();
|
||||||
|
|
||||||
while(limit-- && itr != assets_by_symbol.end())
|
while(limit-- && itr != assets_by_symbol.end())
|
||||||
result.emplace_back(*itr++);
|
result.emplace_back(*itr++);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue