remove unused modules

This commit is contained in:
Moriz Wahl 2022-04-11 15:53:00 +02:00
parent 97ee572c3a
commit e183a9bde0
3 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,6 @@ import { getCustomRepository } from '@dbTools/typeorm'
import { UserRepository } from '@repository/User'
import { INALIENABLE_RIGHTS } from '@/auth/INALIENABLE_RIGHTS'
import { ServerUser } from '@entity/ServerUser'
import { Context } from '@/server/context'
const isAuthorized: AuthChecker<any> = async ({ context }, rights) => {
context.role = ROLE_UNAUTHORIZED // unauthorized user

View File

@ -5,7 +5,7 @@ import { User as dbUser } from '@entity/User'
export interface Context {
token: string | null
setHeaders: { key: string, value: string }[]
setHeaders: { key: string; value: string }[]
role?: Role
user?: dbUser
}

View File

@ -39,7 +39,6 @@ const apolloLogPlugin = ApolloLogPlugin({
},
})
const plugins =
process.env.NODE_ENV === 'development' ? [setHeadersPlugin] : [setHeadersPlugin, apolloLogPlugin]
const plugins = process.env.NODE_ENV === 'development' ? [setHeadersPlugin] : [setHeadersPlugin] // , apolloLogPlugin
export default plugins