* test: add test for invalid cal video * chore: add confirm * chore: fix type error * chore: update code * test: add unit test * chore: type error * chore * chore: type * chore: fix test * chore --------- Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
13 lines
396 B
TypeScript
13 lines
396 B
TypeScript
export type Reference = {
|
|
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;
|
|
};
|