Added maybeUid to createEvent and createMeeting
This commit is contained in:
1 parent
4fb8e8285e
commit
b0ac65b0f6
3 files changed
+28
-11
No files matched your search
+6
-2
@@ -201,8 +201,12 @@ const getBusyVideoTimes = (withCredentials) =>
|
||||
results.reduce((acc, availability) => acc.concat(availability), [])
|
||||
);
|
||||
|
||||
const createMeeting = async (credential, calEvent: CalendarEvent): Promise<EventResult> => {
|
||||
const uid: string = translator.fromUUID(uuidv5(JSON.stringify(calEvent), uuidv5.URL));
|
||||
const createMeeting = async (
|
||||
credential,
|
||||
calEvent: CalendarEvent,
|
||||
maybeUid: string = null
|
||||
): Promise<EventResult> => {
|
||||
const uid: string = maybeUid ?? translator.fromUUID(uuidv5(JSON.stringify(calEvent), uuidv5.URL));
|
||||
|
||||
if (!credential) {
|
||||
throw new Error(
|
||||
|
||||
Reference in new issue
Block a user