chore(server): register user management resolver (#7118)

This commit is contained in:
forehalo
2024-06-03 06:52:18 +00:00
parent 798af4efee
commit 06534bbc06
3 changed files with 31 additions and 7 deletions

View File

@@ -2,12 +2,12 @@ import { Module } from '@nestjs/common';
import { StorageModule } from '../storage';
import { UserAvatarController } from './controller';
import { UserResolver } from './resolver';
import { UserManagementResolver, UserResolver } from './resolver';
import { UserService } from './service';
@Module({
imports: [StorageModule],
providers: [UserResolver, UserService],
providers: [UserResolver, UserService, UserManagementResolver],
controllers: [UserAvatarController],
exports: [UserService],
})

View File

@@ -13,8 +13,12 @@ import { PrismaClient } from '@prisma/client';
import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs';
import { isNil, omitBy } from 'lodash-es';
import type { Config, CryptoHelper, FileUpload } from '../../fundamentals';
import { Throttle } from '../../fundamentals';
import {
Config,
CryptoHelper,
type FileUpload,
Throttle,
} from '../../fundamentals';
import { CurrentUser } from '../auth/current-user';
import { Public } from '../auth/guard';
import { sessionUser } from '../auth/service';
@@ -158,9 +162,6 @@ class CreateUserInput {
@Field(() => String, { nullable: true })
password!: string | null;
@Field(() => Boolean, { nullable: true, defaultValue: true })
requireEmailVerification!: boolean;
}
@Admin()