new features
This commit is contained in:
@@ -131,8 +131,8 @@ export const eventsApi = {
|
||||
},
|
||||
|
||||
/** Hard-delete an event permanently */
|
||||
deleteEvent(id: string): Promise<void> {
|
||||
return api.post(`/api/events/${id}/delete`).then(() => undefined);
|
||||
deleteEvent(id: string, mode: 'all' | 'single' | 'future' = 'all'): Promise<void> {
|
||||
return api.post(`/api/events/${id}/delete`, { mode }).then(() => undefined);
|
||||
},
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user