This commit is contained in:
Dominik Klarkowski
2026-06-22 11:32:27 +02:00
parent bf8624c954
commit d908965c95
16 changed files with 642 additions and 103 deletions

View File

@@ -72,6 +72,16 @@ export async function getDashboardAnalysis(userId: string): Promise<AiAnalysis |
);
}
export async function listAnalysesForCalendar(
userId: string
): Promise<AiAnalysis[]> {
const collection = await getCollection();
return collection
.find({ userId, targetType: "dashboard", targetId: DASHBOARD_TARGET_ID })
.sort({ createdAt: -1 })
.toArray();
}
export async function saveDashboardAnalysis(
userId: string,
summary: string,