feat(calendar): add calendar to home page
This commit is contained in:
parent
758afb36b9
commit
a3e7224087
6 changed files with 39 additions and 24 deletions
|
@ -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,
|
||||
),
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue