From a0507bad5ef3d0d8ce53e68d23691fdd2bb73adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Demetrius=20Feij=C3=B3o?= Date: Fri, 20 Sep 2024 15:37:51 -0300 Subject: [PATCH] fix: change isValidQuery method --- .../nuxt-base/middleware/persist-query.global.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/space-plugins/nuxt-base/middleware/persist-query.global.ts b/space-plugins/nuxt-base/middleware/persist-query.global.ts index 6173a42..7506178 100644 --- a/space-plugins/nuxt-base/middleware/persist-query.global.ts +++ b/space-plugins/nuxt-base/middleware/persist-query.global.ts @@ -19,15 +19,7 @@ const isValidQuery = (query: unknown): query is Query => (('space_id' in query && typeof query.space_id === 'string' && 'user_id' in query && - typeof query.user_id === 'string' && - 'user_is_admin' in query && - typeof query.user_is_admin === 'string' && - 'space_name' in query && - typeof query.space_name === 'string' && - 'space_is_trial' in query && - typeof query.space_is_trial === 'string' && - 'user_lang' in query && - typeof query.user_lang === 'string') || + typeof query.user_id === 'string') || ('spaceId' in query && typeof query.spaceId === 'string' && 'userId' in query && @@ -37,10 +29,6 @@ type Query = | { space_id: string; user_id: string; - user_is_admin: string; - space_name: string; - space_is_trial: string; - user_lang: string; } | { spaceId: string;