invite management

This commit is contained in:
Julian Krauser 2024-11-24 12:36:03 +01:00
parent 61052805ae
commit ed50d8e446
3 changed files with 9 additions and 3 deletions

View file

@ -24,8 +24,8 @@ export const useInviteStore = defineStore("invite", {
this.loading = "failed";
});
},
deleteInvite(invite: number): Promise<AxiosResponse<any, any>> {
return http.delete(`/admin/invite/${invite}`).then((result) => {
deleteInvite(mail: string): Promise<AxiosResponse<any, any>> {
return http.delete(`/admin/invite/${mail}`).then((result) => {
this.fetchInvites();
return result;
});