Only return OFFERING trades in GET /crosschain/tradeoffers

This commit is contained in:
CalDescent 2021-12-06 19:37:30 +00:00
parent 13f3aca838
commit dc52fd1dcf

View File

@ -108,7 +108,9 @@ public class CrossChainResource {
for (ATData atData : atsData) {
CrossChainTradeData crossChainTradeData = acct.populateTradeData(repository, atData);
crossChainTradesData.add(crossChainTradeData);
if (crossChainTradeData.mode == AcctMode.OFFERING) {
crossChainTradesData.add(crossChainTradeData);
}
}
}