fix: Typo in deleteCredential handler (#15281)
* Fix typo * Added optional chaining
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { mockCrmApp } from "@calcom/web/test/utils/bookingScenario/bookingScenario";
|
||||
|
||||
import type { TFunction } from "next-i18next";
|
||||
import { describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { getCrm } from "@calcom/app-store/_utils/getCrm";
|
||||
import { mockCrmApp } from "@calcom/web/test/utils/bookingScenario/bookingScenario";
|
||||
|
||||
import CrmManager from "./crmManager";
|
||||
|
||||
|
||||
+4
-3
@@ -1,6 +1,3 @@
|
||||
import { describe, test, expect, vi } from "vitest";
|
||||
|
||||
import { UserRepository } from "@calcom/lib/server/repository/user";
|
||||
import {
|
||||
createCredentials,
|
||||
addTeamsToDb,
|
||||
@@ -8,6 +5,10 @@ import {
|
||||
addUsersToDb,
|
||||
} from "@calcom/web/test/utils/bookingScenario/bookingScenario";
|
||||
|
||||
import { describe, test, expect, vi } from "vitest";
|
||||
|
||||
import { UserRepository } from "@calcom/lib/server/repository/user";
|
||||
|
||||
// vi.mock("@calcom/lib/server/repository/user", () => {
|
||||
// return {
|
||||
// enrichUserWithItsProfile
|
||||
|
||||
@@ -345,7 +345,7 @@ export const deleteCredentialHandler = async ({ ctx, input }: DeleteCredentialOp
|
||||
});
|
||||
}
|
||||
} else if (
|
||||
(appStoreMetadata[credential.app?.slug as keyof typeof appStoreMetadata].extendsFeature = "EventType")
|
||||
appStoreMetadata[credential.app?.slug as keyof typeof appStoreMetadata]?.extendsFeature === "EventType"
|
||||
) {
|
||||
const metadata = EventTypeMetaDataSchema.parse(eventType.metadata);
|
||||
const appSlug = credential.app?.slug;
|
||||
|
||||
Reference in New Issue
Block a user