From 2ca7c44caede88852d8fd5ff5aed3e4ea4d6661d Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 21 Jun 2024 14:30:39 +0200 Subject: [PATCH] feat(AccountConnections): use VnToken --- src/pages/Account/AccountConnections.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Account/AccountConnections.vue b/src/pages/Account/AccountConnections.vue index 98208e5f2..4d16d1ecd 100644 --- a/src/pages/Account/AccountConnections.vue +++ b/src/pages/Account/AccountConnections.vue @@ -29,15 +29,15 @@ const filter = { order: 'created DESC', }; -const urlPath = 'AccessTokens'; +const urlPath = 'VnTokens'; const refresh = () => paginateRef.value.fetch(); const navigate = (id) => router.push({ name: 'AccountSummary', params: { id } }); -const killSession = async (id) => { +const killSession = async ({ userId, created }) => { try { - await axios.delete(`${urlPath}/${id}`); + await axios.post(`${urlPath}/killSession`, { userId, created }); paginateRef.value.fetch(); notify(t('Session killed'), 'positive'); } catch (error) { @@ -86,7 +86,7 @@ const killSession = async (id) => { openConfirmationModal( t('Session will be killed'), t('Are you sure you want to continue?'), - () => killSession(row.id) + () => killSession(row) ) " outline