This commit is contained in:
Charles Bochet
2023-08-09 14:11:49 -07:00
parent 4a388b8ed5
commit b49c857dc5
3 changed files with 5 additions and 7 deletions

View File

@ -35,7 +35,6 @@ export function CommandMenu() {
const [search, setSearch] = useState('');
const commands = useRecoilValue(commandMenuCommand);
useScopedHotkeys(
'ctrl+k,meta+k',
() => {

View File

@ -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');

View File

@ -104,7 +104,9 @@ export class EnvironmentService {
}
getSupportDriver(): string {
return this.configService.get<string>('SUPPORT_DRIVER') ?? SupportDriver.None;
return (
this.configService.get<string>('SUPPORT_DRIVER') ?? SupportDriver.None
);
}
getSupportFrontChatId(): string | undefined {