mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Fix GET /assets/trades/recent regression + silence Jetty timeout warnings
This commit is contained in:
@@ -426,7 +426,7 @@ public class HSQLDBAssetRepository implements AssetRepository {
|
||||
tradedAssetsSubquery += " GROUP BY have_asset_id, want_asset_id";
|
||||
|
||||
// Find recent trades using "TradedAssets" assetID pairs
|
||||
String recentTradesSubquery = "SELECT AssetTrades.amount, AssetTrades.price, AssetTrades.traded "
|
||||
String recentTradesSubquery = "SELECT AssetTrades.target_amount, AssetTrades.initiator_amount, AssetTrades.traded "
|
||||
+ "FROM AssetOrders JOIN AssetTrades ON initiating_order_id = asset_order_id "
|
||||
+ "WHERE AssetOrders.have_asset_id = TradedAssets.have_asset_id AND AssetOrders.want_asset_id = TradedAssets.want_asset_id "
|
||||
+ "ORDER BY traded DESC LIMIT 2";
|
||||
|
@@ -628,7 +628,7 @@ public class HSQLDBDatabaseUpdates {
|
||||
stmt.execute("ALTER TABLE Assets ALTER COLUMN data AssetDataLob");
|
||||
stmt.execute("ALTER TABLE IssueAssetTransactions ALTER COLUMN data AssetDataLob");
|
||||
stmt.execute("ALTER TABLE UpdateAssetTransactions ALTER COLUMN new_data AssetDataLob");
|
||||
break;
|
||||
break;
|
||||
|
||||
default:
|
||||
// nothing to do
|
||||
|
Reference in New Issue
Block a user