Fix DELETE /crosschain/tradebot by adding missing repository.saveChanges()

This commit is contained in:
catbref 2020-12-10 13:11:48 +00:00
parent d766cfaa67
commit b07ad094c1

View File

@ -196,8 +196,10 @@ public class TradeBot implements Listener {
canDelete = acctTradeBot == null || acctTradeBot.canDelete(repository, tradeBotData);
}
if (canDelete)
if (canDelete) {
repository.getCrossChainRepository().delete(tradePrivateKey);
repository.saveChanges();
}
return canDelete;
}