Skip to content

Scheduling infrastructure for absolutely everyone.

refactor: rename app.ts to appRepository.ts for better naming consistency (#22693)

Eunjae Lee4cb7e4a91a68
diff --git a/packages/features/credentials/deleteCredential.test.ts b/packages/features/credentials/deleteCredential.test.ts
index 09524ee22ac..c30570bc78f 100644
--- a/packages/features/credentials/deleteCredential.test.ts
+++ b/packages/features/credentials/deleteCredential.test.ts
@@ -5,7 +5,7 @@ import {
import { describe, test, expect, beforeEach } from "vitest";
-import { AppRepository } from "@calcom/lib/server/repository/app";
+import { PrismaAppRepository } from "@calcom/lib/server/repository/PrismaAppRepository";
import { CredentialRepository } from "@calcom/lib/server/repository/credential";
import { DestinationCalendarRepository } from "@calcom/lib/server/repository/destinationCalendar";
import { EventTypeRepository } from "@calcom/lib/server/repository/eventTypeRepository";
@@ -56,7 +56,7 @@ describe("deleteCredential", () => {
},
]);
- await AppRepository.seedApp("zoomvideo");
+ await PrismaAppRepository.seedApp("zoomvideo");
await setupCredential({ userId: user.id, type: "zoom_video", appId: "zoom" });
@@ -87,7 +87,7 @@ describe("deleteCredential", () => {
},
]);
- await AppRepository.seedApp("googlecalendar");
+ await PrismaAppRepository.seedApp("googlecalendar");
const credential = await setupCredential({
userId: user.id,
diff --git a/packages/lib/server/repository/app.ts b/packages/lib/server/repository/PrismaAppRepository.ts
similarity index 94%
rename from packages/lib/server/repository/app.ts
rename to packages/lib/server/repository/PrismaAppRepository.ts
index 090f663a2c2..a6752beb26f 100644
--- a/packages/lib/server/repository/app.ts
+++ b/packages/lib/server/repository/PrismaAppRepository.ts
@@ -1,7 +1,7 @@
import { appStoreMetadata } from "@calcom/app-store/appStoreMetaData";
import { prisma } from "@calcom/prisma";
-export class AppRepository {
+export class PrismaAppRepository {
static async seedApp(dirName: string, keys?: any) {
const appMetadata = appStoreMetadata[dirName as keyof typeof appStoreMetadata];