diff --git a/app/api/status/route.ts b/app/api/status/route.ts index 49927f0..c1af3f4 100644 --- a/app/api/status/route.ts +++ b/app/api/status/route.ts @@ -6,12 +6,12 @@ const prisma = new PrismaClient() export async function GET() { try { // Get the latest automation session - const session = await prisma.automationSession.findFirst({ + const session = await prisma.automation_sessions.findFirst({ orderBy: { createdAt: 'desc' } }) // Get recent trades for calculations - const recentTrades = session ? await prisma.trade.findMany({ + const recentTrades = session ? await prisma.trades.findMany({ where: { userId: session.userId, symbol: session.symbol