mirror of
https://github.com/RomySaputraSihananda/ares.git
synced 2026-08-05 23:17:48 +00:00
fix(web/trades): use 2026-06-01 as deals date_from to avoid bridge response limit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ export const dynamic = "force-dynamic";
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
const { searchParams } = req.nextUrl;
|
||||
const dateFrom = searchParams.get("date_from") ?? "2025-01-01T00:00:00";
|
||||
const dateFrom = searchParams.get("date_from") ?? "2026-06-01T00:00:00";
|
||||
const dateTo = searchParams.get("date_to") ?? new Date().toISOString().slice(0, 19);
|
||||
const symbol = searchParams.get("symbol") ?? undefined;
|
||||
try {
|
||||
|
||||
@@ -15,7 +15,7 @@ export default async function TradesPage() {
|
||||
const now = new Date().toISOString().slice(0, 19);
|
||||
[account, deals] = await Promise.all([
|
||||
getAccount(),
|
||||
getDeals("2025-01-01T00:00:00", now),
|
||||
getDeals("2026-06-01T00:00:00", now),
|
||||
]);
|
||||
} catch { error = true; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user