From c43d4b79e42d35423b97f44e35d9d16616391d0e Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 19 Apr 2022 16:55:03 +0800 Subject: [PATCH] fix: switch to new API Signed-off-by: Wing-Kam Wong --- packages/nc-gui/components/auth/userManagement.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/nc-gui/components/auth/userManagement.vue b/packages/nc-gui/components/auth/userManagement.vue index 5ceecfb81a..e2f1126266 100644 --- a/packages/nc-gui/components/auth/userManagement.vue +++ b/packages/nc-gui/components/auth/userManagement.vue @@ -612,16 +612,7 @@ export default { }, async resendInvite(id) { try { - await this.$axios.post('/admin/resendInvite/' + id, { - projectName: this.$store.getters['project/GtrProjectName'] - }, { - headers: { - 'xc-auth': this.$store.state.users.token - }, - params: { - project_id: this.$route.params.project_id - } - }) + await this.$api.auth.projectUserResendInvite(this.$route.params.project_id, id) this.$toast.success('Invite email sent successfully').goAway(3000) await this.loadUsers() } catch (e) {