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:
romysaputrasihananda
2026-06-11 16:18:09 +07:00
parent 3cec0feefb
commit 36037d7b2b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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; }