diff --git a/front/src/modules/command-menu/components/CommandMenu.tsx b/front/src/modules/command-menu/components/CommandMenu.tsx index 5901f7562..d4d3ed5ea 100644 --- a/front/src/modules/command-menu/components/CommandMenu.tsx +++ b/front/src/modules/command-menu/components/CommandMenu.tsx @@ -35,7 +35,6 @@ export function CommandMenu() { const [search, setSearch] = useState(''); const commands = useRecoilValue(commandMenuCommand); - useScopedHotkeys( 'ctrl+k,meta+k', () => { diff --git a/server/src/core/user/user.resolver.ts b/server/src/core/user/user.resolver.ts index 65823bf45..c9c0b6063 100644 --- a/server/src/core/user/user.resolver.ts +++ b/server/src/core/user/user.resolver.ts @@ -15,6 +15,7 @@ import { Prisma, Workspace } from '@prisma/client'; import { FileUpload, GraphQLUpload } from 'graphql-upload'; import { FileFolder } from 'src/core/file/interfaces/file-folder.interface'; +import { SupportDriver } from 'src/integrations/environment/interfaces/support.interface'; import { FindManyUserArgs } from 'src/core/@generated/user/find-many-user.args'; import { User } from 'src/core/@generated/user/user.model'; @@ -43,8 +44,6 @@ import { EnvironmentService } from 'src/integrations/environment/environment.ser import { UserService } from './user.service'; -import { SupportDriver } from 'src/integrations/environment/interfaces/support.interface'; - function getHMACKey(email?: string, key?: string | null) { if (!email || !key) return null; @@ -67,15 +66,13 @@ export class UserResolver { @PrismaSelector({ modelName: 'User' }) prismaSelect: PrismaSelect<'User'>, ) { - - const select = prismaSelect.value; const user = await this.userService.findUnique({ where: { id, }, - select + select, }); assert(user, 'User not found'); diff --git a/server/src/integrations/environment/environment.service.ts b/server/src/integrations/environment/environment.service.ts index 6147dbde9..b5eadc497 100644 --- a/server/src/integrations/environment/environment.service.ts +++ b/server/src/integrations/environment/environment.service.ts @@ -104,7 +104,9 @@ export class EnvironmentService { } getSupportDriver(): string { - return this.configService.get('SUPPORT_DRIVER') ?? SupportDriver.None; + return ( + this.configService.get('SUPPORT_DRIVER') ?? SupportDriver.None + ); } getSupportFrontChatId(): string | undefined {