mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 21:25:49 +00:00
Convert getOrderBook and add unit test
This commit is contained in:
@@ -30,8 +30,8 @@ function getAccountOrders(account, options, callback) {
|
||||
const getter = _.partial(requestAccountOffers, this.remote, account,
|
||||
ledgerVersion, options);
|
||||
utils.getRecursive(getter, limit,
|
||||
composeAsync((orders) => _.sortBy(orders, (order) => order.state.sequence),
|
||||
callback));
|
||||
composeAsync((orders) => _.sortBy(orders,
|
||||
(order) => order.properties.sequence), callback));
|
||||
}
|
||||
|
||||
module.exports = getAccountOrders;
|
||||
module.exports = utils.wrapCatch(getAccountOrders);
|
||||
|
||||
Reference in New Issue
Block a user