diff --git a/lib/ai-learning-status.ts b/lib/ai-learning-status.ts index 046ea96..4308af9 100644 --- a/lib/ai-learning-status.ts +++ b/lib/ai-learning-status.ts @@ -19,18 +19,13 @@ export interface AILearningStatus { export async function getAILearningStatus(userId: string): Promise { try { - // Get learning data + // Get ALL learning data (not filtered by userId to match ai-analytics behavior) const learningData = await prisma.ai_learning_data.findMany({ - where: { userId }, orderBy: { createdAt: 'desc' } }) - // Get trade data - use real database data instead of demo numbers + // Get ALL trade data (not filtered by userId to match ai-analytics behavior) const trades = await prisma.trades.findMany({ - where: { - userId, - // isAutomated: true // This field might not exist in current schema - }, orderBy: { createdAt: 'desc' } })