feat(calendar): add calendar to home page
All checks were successful
container-scan / Container Scan (pull_request) Successful in 8m13s
docker-build / docker (pull_request) Successful in 9m11s
tests / Tests (pull_request) Successful in 7m3s

This commit is contained in:
Dominik 2025-06-26 10:57:31 +02:00
parent 758afb36b9
commit a3e7224087
6 changed files with 39 additions and 24 deletions

View file

@ -217,6 +217,10 @@ export const GET = auth(async function GET(req, { params }) {
return returnZodTypeCheckedResponse(UserCalendarResponseSchema, {
success: true,
calendar,
calendar: calendar.filter(
(event, index, self) =>
self.findIndex((e) => e.id === event.id && e.type === event.type) ===
index,
),
});
});