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

@@ -0,0 +1,16 @@
import prisma from "@calcom/prisma";
export class PrismaAssignmentReasonRepository {
static async findLatestReasonFromBookingUid(bookingUid: string) {
return await prisma.assignmentReason.findFirst({
where: {
booking: {
uid: bookingUid,
},
},
orderBy: {
createdAt: "desc",
},
});
}
}