From 918618f11d886b9bbabd4618ec25b05c07d5ccc7 Mon Sep 17 00:00:00 2001 From: Josh Andromidas <66661368+andromidasj@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:23:24 -0500 Subject: [PATCH] fix: revert interface modification --- src/hooks/useUser.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hooks/useUser.ts b/src/hooks/useUser.ts index 4a05fda913..192b3fe9da 100644 --- a/src/hooks/useUser.ts +++ b/src/hooks/useUser.ts @@ -1,5 +1,4 @@ import { UserType } from '@server/constants/user'; -import type { UserSettingsGeneralResponse } from '@server/interfaces/api/userSettingsInterfaces'; import type { PermissionCheckOptions } from '@server/lib/permissions'; import { hasPermission, Permission } from '@server/lib/permissions'; import type { NotificationAgentKey } from '@server/lib/settings'; @@ -26,14 +25,15 @@ export interface User { type NotificationAgentTypes = Record; -type UserSettings = Pick< - UserSettingsGeneralResponse, - 'discordId' | 'region' | 'originalLanguage' | 'locale' | 'hideTags' -> & { +export interface UserSettings { + discordId?: string; + region?: string; + originalLanguage?: string; + locale?: string; notificationTypes: Partial; watchlistSyncMovies?: boolean; watchlistSyncTv?: boolean; -}; +} interface UserHookResponse { user?: User;