fix build err
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m20s

This commit is contained in:
2026-03-21 01:51:51 -04:00
parent 468b8b6677
commit a280891359
+9 -4
View File
@@ -17,15 +17,20 @@ export default async function GlobalTradesPage({ searchParams }: PageProps) {
const tradeWhere = { const tradeWhere = {
OR: [ OR: [
{ hashtagId: { not: null }, type: { not: 'LOTTERY_WIN' } }, { hashtagId: { not: null as string | null }, type: { not: 'LOTTERY_WIN' as const } },
{ type: { in: ['FUND_INVEST', 'FUND_REDEEM'] } }, { type: { in: ['FUND_INVEST', 'FUND_REDEEM'] as ('FUND_INVEST' | 'FUND_REDEEM')[] } },
], ],
} as const }
const [total, trades] = await Promise.all([ const [total, trades] = await Promise.all([
prisma.trade.count({ where: tradeWhere }), prisma.trade.count({ where: tradeWhere }),
prisma.trade.findMany({ prisma.trade.findMany({
where: tradeWhere, where: {
OR: [
{ hashtagId: { not: null }, type: { not: 'LOTTERY_WIN' as const } },
{ type: { in: ['FUND_INVEST', 'FUND_REDEEM'] as const } },
],
},
orderBy: { createdAt: 'desc' }, orderBy: { createdAt: 'desc' },
take: PAGE_SIZE, take: PAGE_SIZE,
skip: (page - 1) * PAGE_SIZE, skip: (page - 1) * PAGE_SIZE,