mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove unused modules
This commit is contained in:
parent
97ee572c3a
commit
e183a9bde0
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user