first commit
This commit is contained in:
13
calcom/packages/features/get-cal-video-reference.ts
Normal file
13
calcom/packages/features/get-cal-video-reference.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export type Reference = {
|
||||
id: number;
|
||||
uid: string;
|
||||
type: string;
|
||||
meetingUrl: string | null;
|
||||
meetingPassword: string | null;
|
||||
};
|
||||
|
||||
export const getCalVideoReference = (references: Reference[]) => {
|
||||
const videoReferences = references.filter((reference) => reference.type.includes("_video"));
|
||||
const latestVideoReference = videoReferences[videoReferences.length - 1];
|
||||
return latestVideoReference;
|
||||
};
|
||||
Reference in New Issue
Block a user