diff --git a/__test__/components/CalendarColors.test.tsx b/__test__/components/CalendarColors.test.tsx index c01c6bf..6a44b06 100644 --- a/__test__/components/CalendarColors.test.tsx +++ b/__test__/components/CalendarColors.test.tsx @@ -91,7 +91,7 @@ describe("CalendarSearch", () => { await waitFor(() => { expect(mockedGetCalendars).toHaveBeenCalledWith( "user123", - "sharedPublic=true&withRights=true" + "sharedPublic=true&" ); }); @@ -373,7 +373,7 @@ describe("CalendarSearch", () => { await waitFor(() => { expect(mockedGetCalendars).toHaveBeenCalledWith( "user123", - "sharedPublic=true&withRights=true" + "sharedPublic=true&" ); }); diff --git a/__test__/features/Calendars/CalendarAPI.test.tsx b/__test__/features/Calendars/CalendarAPI.test.tsx index 47b1b0d..24e510f 100644 --- a/__test__/features/Calendars/CalendarAPI.test.tsx +++ b/__test__/features/Calendars/CalendarAPI.test.tsx @@ -32,7 +32,7 @@ describe("Calendar API", () => { const calendars = await getCalendars(mockUserId); expect(api.get).toHaveBeenCalledWith( - `dav/calendars/${mockUserId}.json?personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&withRights=true`, + `dav/calendars/${mockUserId}.json?personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&`, { headers: { Accept: "application/calendar+json" }, } diff --git a/src/components/Calendar/CalendarSearch.tsx b/src/components/Calendar/CalendarSearch.tsx index 80f5796..6bd3bb5 100644 --- a/src/components/Calendar/CalendarSearch.tsx +++ b/src/components/Calendar/CalendarSearch.tsx @@ -282,7 +282,7 @@ export default function CalendarSearch({ value.map(async (user: User) => { const cals = (await getCalendars( user.openpaasId, - "sharedPublic=true&withRights=true" + "sharedPublic=true&" )) as Record; return cals._embedded?.["dav:calendar"] ? cals._embedded["dav:calendar"].map( diff --git a/src/features/Calendars/CalendarApi.ts b/src/features/Calendars/CalendarApi.ts index 3c45293..d9d2da3 100644 --- a/src/features/Calendars/CalendarApi.ts +++ b/src/features/Calendars/CalendarApi.ts @@ -2,7 +2,7 @@ import { api } from "../../utils/apiUtils"; export async function getCalendars( userId: string, - scope: string = "personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&withRights=true", + scope: string = "personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&", signal?: AbortSignal ) { const calendars = await api diff --git a/src/features/Calendars/CalendarSlice.ts b/src/features/Calendars/CalendarSlice.ts index 961967a..309a97a 100644 --- a/src/features/Calendars/CalendarSlice.ts +++ b/src/features/Calendars/CalendarSlice.ts @@ -167,7 +167,7 @@ export const getTempCalendarsListAsync = createAsyncThunk< const calendars = (await getCalendars( tempUser.openpaasId ?? "", - "sharedPublic=true&WithRights=true" + "sharedPublic=true&" )) as Record; const rawCalendars = calendars._embedded["dav:calendar"];