refactor: remove unused imports and stale TODO comment from caleventparser.ts (#28096)
* refactor: replace manual provider logic with getAppFromLocationValue * chore: revert changes and remove stale comment --------- Co-authored-by: Romit <[email protected]>
This commit is contained in:
1 parent
f1ae5f727a
commit
4dbe044ecc
1 file changed
-3
@@ -1,13 +1,11 @@
|
|||||||
import type { TFunction } from "i18next";
|
import type { TFunction } from "i18next";
|
||||||
import short from "short-uuid";
|
import short from "short-uuid";
|
||||||
import { v5 as uuidv5 } from "uuid";
|
|
||||||
|
|
||||||
import getLabelValueMapFromResponses from "@calcom/lib/bookings/getLabelValueMapFromResponses";
|
import getLabelValueMapFromResponses from "@calcom/lib/bookings/getLabelValueMapFromResponses";
|
||||||
import { Prisma } from "@calcom/prisma/client";
|
import { Prisma } from "@calcom/prisma/client";
|
||||||
import type {
|
import type {
|
||||||
AdditionalInformation,
|
AdditionalInformation,
|
||||||
AppsStatus,
|
AppsStatus,
|
||||||
CalendarEvent,
|
|
||||||
CalEventResponses,
|
CalEventResponses,
|
||||||
Person,
|
Person,
|
||||||
RecurringEvent,
|
RecurringEvent,
|
||||||
@@ -194,7 +192,6 @@ export const getLocation = (calEvent: {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getProviderName = (location?: string | null): string => {
|
export const getProviderName = (location?: string | null): string => {
|
||||||
// TODO: use getAppName from @calcom/app-store
|
|
||||||
if (location && location.includes("integrations:")) {
|
if (location && location.includes("integrations:")) {
|
||||||
let locationName = location.split(":")[1];
|
let locationName = location.split(":")[1];
|
||||||
if (locationName === "daily") {
|
if (locationName === "daily") {
|
||||||
|
|||||||
Reference in new issue
Block a user