feat: rename repository files to include Repository suffix (#22716)

* feat: rename repository files to include Repository suffix

- Rename apiKey.ts to apiKeyRepository.ts
- Rename assignmentReason.ts to assignmentReasonRepository.ts
- Update all import statements to use new file names

Co-Authored-By: [email protected] <[email protected]>

* feat: rename repository files to PrismaRepository with Prisma prefix

- Rename apiKeyRepository.ts to PrismaApiKeyRepository.ts
- Rename assignmentReasonRepository.ts to PrismaAssignmentReasonRepository.ts
- Update class names to PrismaApiKeyRepository and PrismaAssignmentReasonRepository
- Update all import statements and usages across 3 files

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Eunjae LeeandDevin AI authored and GitHub committed 2025-07-30 13:17:18 +02:00
1 parent 4cb7e4a91a
commit 84bc330fa8
5 files changed
+8 -8

No files matched your search

@@ -5,7 +5,7 @@ import { redirect } from "next/navigation";
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
import { APP_NAME } from "@calcom/lib/constants";
import { ApiKeyRepository } from "@calcom/lib/server/repository/apiKey";
import { PrismaApiKeyRepository } from "@calcom/lib/server/repository/PrismaApiKeyRepository";
import { buildLegacyRequest } from "@lib/buildLegacyCtx";
@@ -22,7 +22,7 @@ export const generateMetadata = async () =>
const getCachedApiKeys = unstable_cache(
async (userId: number) => {
return await ApiKeyRepository.findApiKeysFromUserId({ userId });
return await PrismaApiKeyRepository.findApiKeysFromUserId({ userId });
},
undefined,
{ revalidate: 3600, tags: ["viewer.apiKeys.list"] } // Cache for 1 hour