diff --git a/apps/api/v2/src/modules/repositories/user/user-repository.service.ts b/apps/api/v2/src/modules/repositories/user/user-repository.service.ts index 1c7e46f572..1c3fc68eea 100644 --- a/apps/api/v2/src/modules/repositories/user/user-repository.service.ts +++ b/apps/api/v2/src/modules/repositories/user/user-repository.service.ts @@ -2,33 +2,6 @@ import { PrismaReadService } from "@/modules/prisma/prisma-read.service"; import { Injectable } from "@nestjs/common"; import type { User } from "@prisma/client"; -type UserRelations = { - eventTypes?: boolean; - credentials?: boolean; - teams?: boolean; - bookings?: boolean; - schedules?: boolean; - selectedCalendars?: boolean; - availability?: boolean; - webhooks?: boolean; - destinationCalendar?: boolean; - metadata?: boolean; - impersonatedUsers?: boolean; - impersonatedBy?: boolean; - apiKeys?: boolean; - accounts?: boolean; - sessions?: boolean; - Feedback?: boolean; - ownedEventTypes?: boolean; - workflows?: boolean; - routingForms?: boolean; - verifiedNumbers?: boolean; - hosts?: boolean; - organization?: boolean; - accessCodes?: boolean; - platformOAuthClients?: boolean; -}; - @Injectable() export class UserRepository { constructor(private readonly dbRead: PrismaReadService) {} @@ -58,3 +31,30 @@ export class UserRepository { return Object.fromEntries(Object.entries(user).filter(([key]) => !keys.includes(key as keyof User))); } } + +type UserRelations = { + eventTypes?: boolean; + credentials?: boolean; + teams?: boolean; + bookings?: boolean; + schedules?: boolean; + selectedCalendars?: boolean; + availability?: boolean; + webhooks?: boolean; + destinationCalendar?: boolean; + metadata?: boolean; + impersonatedUsers?: boolean; + impersonatedBy?: boolean; + apiKeys?: boolean; + accounts?: boolean; + sessions?: boolean; + Feedback?: boolean; + ownedEventTypes?: boolean; + workflows?: boolean; + routingForms?: boolean; + verifiedNumbers?: boolean; + hosts?: boolean; + organization?: boolean; + accessCodes?: boolean; + platformOAuthClients?: boolean; +};