diff --git a/ExpressAPI/src/types/DatabaseTypes.ts b/ExpressAPI/src/types/DatabaseTypes.ts index 14e9b00a7f35a210302854e69c94dcc2f4dc63b4..2a9726980de2a1bcc8187be1df7d3837c0fd4def 100644 --- a/ExpressAPI/src/types/DatabaseTypes.ts +++ b/ExpressAPI/src/types/DatabaseTypes.ts @@ -1,6 +1,6 @@ -import { Prisma } from '@prisma/client'; -import LazyVal from '../shared/helpers/LazyVal'; -import GitlabUser from '../shared/types/Gitlab/GitlabUser'; +import { Prisma } from '@prisma/client'; +import LazyVal from '../shared/helpers/LazyVal'; +import * as Gitlab from '@gitbeaker/rest'; const userBase = Prisma.validator<Prisma.UserDefaultArgs>()({ @@ -29,7 +29,7 @@ const resultBase = Prisma.validator<Prisma.ResultDefaultArgs>()({ export type User = Prisma.UserGetPayload<typeof userBase> & { isTeachingStaff: boolean isAdmin: boolean - gitlabProfile: LazyVal<GitlabUser> + gitlabProfile: LazyVal<Gitlab.UserSchema> } export type Exercise = Prisma.ExerciseGetPayload<typeof exerciseBase> & { isCorrection: boolean