refactor: rename app.ts to appRepository.ts for better naming consistency (#22693)
* refactor: rename app.ts to appRepository.ts for better naming consistency - Renamed packages/lib/server/repository/app.ts to appRepository.ts - Updated import statement in deleteCredential.test.ts - No functional changes, only file rename and import path update Co-Authored-By: eunjae@cal.com <hey@eunjae.dev> * rename * update usages * add missing import --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user