From b361f1232506290383eeec174d97d58b054e7bfd Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 7 Mar 2022 21:44:29 +0100 Subject: [PATCH] resolve relative paths in directives --- backend/src/graphql/directive/isAuthorized.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/graphql/directive/isAuthorized.ts b/backend/src/graphql/directive/isAuthorized.ts index 89da13ff7..aa407c95f 100644 --- a/backend/src/graphql/directive/isAuthorized.ts +++ b/backend/src/graphql/directive/isAuthorized.ts @@ -2,12 +2,12 @@ import { AuthChecker } from 'type-graphql' -import { decode, encode } from '../../auth/JWT' -import { ROLE_UNAUTHORIZED, ROLE_USER, ROLE_ADMIN } from '../../auth/ROLES' -import { RIGHTS } from '../../auth/RIGHTS' +import { decode, encode } from '@/auth/JWT' +import { ROLE_UNAUTHORIZED, ROLE_USER, ROLE_ADMIN } from '@/auth/ROLES' +import { RIGHTS } from '@/auth/RIGHTS' import { getCustomRepository } from '@dbTools/typeorm' -import { UserRepository } from '../../typeorm/repository/User' -import { INALIENABLE_RIGHTS } from '../../auth/INALIENABLE_RIGHTS' +import { UserRepository } from '@repository/User' +import { INALIENABLE_RIGHTS } from '@/auth/INALIENABLE_RIGHTS' import { ServerUser } from '@entity/ServerUser' const isAuthorized: AuthChecker = async ({ context }, rights) => {