From 02e145456eedbc0c1b75ca2d25afaa91d74efb95 Mon Sep 17 00:00:00 2001 From: Andreani Jean Date: Tue, 21 Nov 2023 15:57:55 +0100 Subject: [PATCH] fix pr --- src/utils/auth.ts | 1 + src/views/MySequencesView.vue | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/auth.ts b/src/utils/auth.ts index b0b4825..0cadd85 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -9,6 +9,7 @@ function getAuthRoute(authRoute: string, nextRoute: string): string { }api/${authRoute}?next_url=${encodeURIComponent(`${next}`)}` } +// This function to decode the flask cookie and have the user information like username function decodingFlaskCookie(cookie: string): string { const cookieFormatted = cookie .split('.')[1] diff --git a/src/views/MySequencesView.vue b/src/views/MySequencesView.vue index 1c7ebc7..5ab4f82 100644 --- a/src/views/MySequencesView.vue +++ b/src/views/MySequencesView.vue @@ -308,8 +308,7 @@ const getUserId = computed(() => cookies.get('user_id')) onMounted(async () => { isLoading.value = true try { - const { data } = await axios.get('api/users/me/collection?limit=1') - console.log(data) + const { data } = await axios.get('api/users/me/collection') collectionBbox.value = data.extent.spatial.bbox[0] userSequences.value = getRelChild(data.links) isLoading.value = false