[#7] fixed move destination
This commit is contained in:
@@ -16,11 +16,11 @@ export async function putEvent(event: CalendarEvent) {
|
||||
return response;
|
||||
}
|
||||
|
||||
export async function moveEvent(event: CalendarEvent) {
|
||||
export async function moveEvent(event: CalendarEvent, newUrl: string) {
|
||||
const response = await api(`dav${event.URL}`, {
|
||||
method: "MOVE",
|
||||
headers: {
|
||||
destination: event.URL,
|
||||
destination: newUrl,
|
||||
},
|
||||
});
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user