Fix lint
This commit is contained in:
@ -35,7 +35,6 @@ export function CommandMenu() {
|
|||||||
const [search, setSearch] = useState('');
|
const [search, setSearch] = useState('');
|
||||||
const commands = useRecoilValue(commandMenuCommand);
|
const commands = useRecoilValue(commandMenuCommand);
|
||||||
|
|
||||||
|
|
||||||
useScopedHotkeys(
|
useScopedHotkeys(
|
||||||
'ctrl+k,meta+k',
|
'ctrl+k,meta+k',
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import { Prisma, Workspace } from '@prisma/client';
|
|||||||
import { FileUpload, GraphQLUpload } from 'graphql-upload';
|
import { FileUpload, GraphQLUpload } from 'graphql-upload';
|
||||||
|
|
||||||
import { FileFolder } from 'src/core/file/interfaces/file-folder.interface';
|
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 { FindManyUserArgs } from 'src/core/@generated/user/find-many-user.args';
|
||||||
import { User } from 'src/core/@generated/user/user.model';
|
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 { UserService } from './user.service';
|
||||||
|
|
||||||
import { SupportDriver } from 'src/integrations/environment/interfaces/support.interface';
|
|
||||||
|
|
||||||
function getHMACKey(email?: string, key?: string | null) {
|
function getHMACKey(email?: string, key?: string | null) {
|
||||||
if (!email || !key) return null;
|
if (!email || !key) return null;
|
||||||
|
|
||||||
@ -67,15 +66,13 @@ export class UserResolver {
|
|||||||
@PrismaSelector({ modelName: 'User' })
|
@PrismaSelector({ modelName: 'User' })
|
||||||
prismaSelect: PrismaSelect<'User'>,
|
prismaSelect: PrismaSelect<'User'>,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
||||||
const select = prismaSelect.value;
|
const select = prismaSelect.value;
|
||||||
|
|
||||||
const user = await this.userService.findUnique({
|
const user = await this.userService.findUnique({
|
||||||
where: {
|
where: {
|
||||||
id,
|
id,
|
||||||
},
|
},
|
||||||
select
|
select,
|
||||||
});
|
});
|
||||||
assert(user, 'User not found');
|
assert(user, 'User not found');
|
||||||
|
|
||||||
|
|||||||
@ -104,7 +104,9 @@ export class EnvironmentService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSupportDriver(): string {
|
getSupportDriver(): string {
|
||||||
return this.configService.get<string>('SUPPORT_DRIVER') ?? SupportDriver.None;
|
return (
|
||||||
|
this.configService.get<string>('SUPPORT_DRIVER') ?? SupportDriver.None
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSupportFrontChatId(): string | undefined {
|
getSupportFrontChatId(): string | undefined {
|
||||||
|
|||||||
Reference in New Issue
Block a user